mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2025-10-09 00:47:19 +08:00
Fix some type comparisons
This commit is contained in:
@@ -384,7 +384,7 @@ pub fn initialize(req: HttpRequest, body: String) -> Option<JsonValue> {
|
||||
// User is rewarded with all base cards in the team they chose. This makes up their new deck_list
|
||||
|
||||
for (i, data) in cardstoreward.members().enumerate() {
|
||||
items::give_character(data.to_string(), &mut user, &mut missions, &mut array![]);
|
||||
items::give_character(data.as_i64().unwrap(), &mut user, &mut missions, &mut array![]);
|
||||
if i < 10 {
|
||||
user["deck_list"][0]["main_card_ids"][i] = data.clone();
|
||||
}
|
||||
|
Reference in New Issue
Block a user