Fix item logic

This commit is contained in:
Ethan O'Brien 2024-04-27 08:41:50 -05:00
parent c4d89059f0
commit e589f23885

View file

@ -131,9 +131,9 @@ pub fn give_item(master_item_id: i64, amount: i64, user: &mut JsonValue) -> bool
return true;
}
dataa["amount"] = new_amount.into();
}
break;
}
}
if !has {
user["item_list"].push(object!{
id: master_item_id,
@ -155,9 +155,9 @@ pub fn give_points(master_item_id: i64, amount: i64, user: &mut JsonValue) -> bo
return true;
}
dataa["amount"] = new_amount.into();
}
break;
}
}
if !has {
user["point_list"].push(object!{
type: master_item_id,