Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhelvetican committed Jul 7, 2024
1 parent 0480d83 commit dfd325b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions terraps/src/game/tower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ pub async fn tower_battle_finish(Json(payload): JSON) -> JSON {

for battle_info in get_keys(&battle_data["battleData"]["stats"]["extraBattleInfo"]) {
if battle_info.starts_with("DETAILED") && battle_info.ends_with("legion_gain_reward_trap") {
let infos = battle_info.split(',').collect::<Vec<&str>>();
let infos = battle_info.split(',').collect::<Vec<_>>();
trap.push(json!({
"id": infos[1],
"alias": infos[2],
Expand Down Expand Up @@ -436,7 +436,11 @@ pub async fn tower_settle_game() -> JSON {
"id": "",
"subGodCardId": "",
},
"halftime": {"count": 0, "candidate": [], "canGiveUp": false},
"halftime": {
"count": 0,
"candidate": [],
"canGiveUp": false
},
"trap": [],
"raward": {},
}
Expand Down

0 comments on commit dfd325b

Please sign in to comment.