Set stamina to 100 during tutorial

This commit is contained in:
Ethan O'Brien 2024-04-02 10:43:36 -05:00
parent 36077a0b69
commit b583c82364

View file

@ -11,6 +11,8 @@ pub fn tutorial(req: HttpRequest, body: String) -> HttpResponse {
let mut user = userdata::get_acc(&key);
user["tutorial_step"] = body["step"].clone();
user["stamina"]["stamina"] = (100).into();
user["stamina"]["last_updated_time"] = global::timestamp().into();
userdata::save_acc(&key, user);