mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Increase user ex when live finished
This commit is contained in:
parent
84925282cf
commit
893a6f1543
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ pub fn end(req: HttpRequest, body: String) -> HttpResponse {
|
||||||
}
|
}
|
||||||
user["stamina"]["last_updated_time"] = global::timestamp().into();
|
user["stamina"]["last_updated_time"] = global::timestamp().into();
|
||||||
|
|
||||||
|
user["user"]["exp"] = (user["user"]["exp"].as_i32().unwrap() + body["use_lp"].as_i32().unwrap()).into();
|
||||||
|
|
||||||
let live = update_live_data(&mut user, &body);
|
let live = update_live_data(&mut user, &body);
|
||||||
|
|
||||||
userdata::save_acc(&key, user.clone());
|
userdata::save_acc(&key, user.clone());
|
||||||
|
|
Loading…
Add table
Reference in a new issue