mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Set stamina to 100 during tutorial
This commit is contained in:
parent
36077a0b69
commit
b583c82364
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue