Check for consume type 2 (paid gems)

This commit is contained in:
Ethan O'Brien
2025-01-20 12:38:45 -06:00
parent fae080ea87
commit b082def65c
2 changed files with 15 additions and 6 deletions

View File

@@ -118,12 +118,7 @@ pub fn lottery_post(req: HttpRequest, body: String) -> Option<JsonValue> {
consumeType: price["consumeType"].clone()
}, 1, &mut user);
let mut count = price["count"].as_usize().unwrap();
// This is a temporary easter egg, not meant to stay
if lottery_id == 4110044 {
count = 30;
}
let count = price["count"].as_usize().unwrap();
let cardstogive = get_random_cards(lottery_id, count);