mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Push live gifts to reward box
This commit is contained in:
parent
63419afacc
commit
4f2e4b54cc
1 changed files with 3 additions and 3 deletions
|
@ -267,9 +267,9 @@ pub fn end(req: HttpRequest, body: String) -> HttpResponse {
|
||||||
|
|
||||||
live_completed(body["master_live_id"].as_i64().unwrap(), body["level"].as_i32().unwrap(), false);
|
live_completed(body["master_live_id"].as_i64().unwrap(), body["level"].as_i32().unwrap(), false);
|
||||||
|
|
||||||
global::give_points(1, 10000, &mut user);
|
global::gift_item_basic(1, 10000, 4, "You completed a live!", &mut user);
|
||||||
global::give_item(16005003, 10, &mut user);
|
global::gift_item_basic(16005003, 10, 3, "You completed a live!", &mut user);
|
||||||
global::give_item(17001003, 2, &mut user);
|
global::gift_item_basic(17001003, 2, 3, "You completed a live!", &mut user);
|
||||||
|
|
||||||
global::lp_modification(&mut user, body["use_lp"].as_u64().unwrap(), true);
|
global::lp_modification(&mut user, body["use_lp"].as_u64().unwrap(), true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue