Add coins/primogems and item limits

This commit is contained in:
Ethan O'Brien
2026-02-10 14:51:51 -06:00
parent 8e4300a7ea
commit d61b27af8f
3 changed files with 25 additions and 7 deletions

View File

@@ -77,9 +77,9 @@ pub fn check_for_region(user: &mut JsonValue, headers: &HeaderMap) {
// true - limit reached
// false - all good
pub const GIFT_LIMIT: usize = 100000;
pub const LIMIT_ITEMS: i64 = 200000000;
pub const LIMIT_COINS: i64 = 2000000000;
pub const LIMIT_PRIMOGEMS: i64 = 1000000;
pub const LIMIT_ITEMS: i64 = 9999999;
pub const LIMIT_COINS: i64 = 999999999;
pub const LIMIT_PRIMOGEMS: i64 = 9999999;
fn give(array: &mut JsonValue, shop_id: &str, master_item_id: i64, limit: i64, count_id: &str, count: i64, default_push: JsonValue) -> bool {
for data in array.members_mut() {