Set stamina to 100 during tutorial
This commit is contained in:
parent
36077a0b69
commit
b583c82364
@ -11,6 +11,8 @@ pub fn tutorial(req: HttpRequest, body: String) -> HttpResponse {
|
|||||||
let mut user = userdata::get_acc(&key);
|
let mut user = userdata::get_acc(&key);
|
||||||
|
|
||||||
user["tutorial_step"] = body["step"].clone();
|
user["tutorial_step"] = body["step"].clone();
|
||||||
|
user["stamina"]["stamina"] = (100).into();
|
||||||
|
user["stamina"]["last_updated_time"] = global::timestamp().into();
|
||||||
|
|
||||||
userdata::save_acc(&key, user);
|
userdata::save_acc(&key, user);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user