mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Add temporary easter egg
This commit is contained in:
parent
775421038a
commit
5c51871d39
1 changed files with 8 additions and 1 deletions
|
@ -117,8 +117,15 @@ pub fn lottery_post(req: HttpRequest, body: String) -> Option<JsonValue> {
|
|||
amount: price["price"].clone(),
|
||||
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 body["master_lottery_price_number"] == 4110044 {
|
||||
count = 30;
|
||||
}
|
||||
|
||||
let cardstogive = get_random_cards(lottery_id, price["count"].as_usize().unwrap());
|
||||
let cardstogive = get_random_cards(lottery_id, count);
|
||||
|
||||
let lottery = &databases::LOTTERY[lottery_id.to_string()];
|
||||
let lottery_type = lottery["category"].as_i32().unwrap();
|
||||
|
|
Loading…
Add table
Reference in a new issue