mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Fix item logic
This commit is contained in:
parent
c4d89059f0
commit
e589f23885
1 changed files with 2 additions and 2 deletions
|
@ -131,9 +131,9 @@ pub fn give_item(master_item_id: i64, amount: i64, user: &mut JsonValue) -> bool
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
dataa["amount"] = new_amount.into();
|
dataa["amount"] = new_amount.into();
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if !has {
|
if !has {
|
||||||
user["item_list"].push(object!{
|
user["item_list"].push(object!{
|
||||||
id: master_item_id,
|
id: master_item_id,
|
||||||
|
@ -155,9 +155,9 @@ pub fn give_points(master_item_id: i64, amount: i64, user: &mut JsonValue) -> bo
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
dataa["amount"] = new_amount.into();
|
dataa["amount"] = new_amount.into();
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if !has {
|
if !has {
|
||||||
user["point_list"].push(object!{
|
user["point_list"].push(object!{
|
||||||
type: master_item_id,
|
type: master_item_id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue