Skip to content

Commit

Permalink
fix: fix force end box generate
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis committed Nov 4, 2023
1 parent c11afcc commit b92a3db
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 92 deletions.
46 changes: 23 additions & 23 deletions packages/contracts/out/IWorld.sol/IWorld.json
Original file line number Diff line number Diff line change
Expand Up @@ -4000,16 +4000,16 @@
108638,
108617,
29089,
120070,
119979,
119963,
119966,
120018,
129937,
120008,
119997,
120068,
119977,
119961,
119964,
120016,
129935,
120006,
119995,
22176,
117236,
117234,
22134,
22167,
22140,
Expand All @@ -4020,22 +4020,22 @@
"nameLocation": "798:6:141",
"scope": 108905,
"usedErrors": [
117201,
117199,
117205,
117207,
117209,
117211,
117217,
117223,
117229,
117235,
129906,
129910,
129916,
129920,
129924,
129928,
129932,
129936
117215,
117221,
117227,
117233,
129904,
129908,
129914,
129918,
129922,
129926,
129930,
129934
]
}
],
Expand Down
82 changes: 41 additions & 41 deletions packages/contracts/out/Plugin.sol/MPlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@
"id": 110489,
"exportedSymbols": {
"Loot": [
114966
114964
],
"MPlugin": [
110488
],
"User": [
114927
114925
]
},
"nodeType": "SourceUnit",
Expand All @@ -250,15 +250,15 @@
"file": "@systems/library/Interface.sol",
"nameLocation": "-1:-1:-1",
"scope": 110489,
"sourceUnit": 114967,
"sourceUnit": 114965,
"symbolAliases": [
{
"foreign": {
"id": 110396,
"name": "User",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 114927,
"referencedDeclaration": 114925,
"src": "66:4:146",
"typeDescriptions": {}
},
Expand All @@ -270,7 +270,7 @@
"name": "Loot",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 114966,
"referencedDeclaration": 114964,
"src": "72:4:146",
"typeDescriptions": {}
},
Expand Down Expand Up @@ -550,7 +550,7 @@
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
},
"typeName": {
Expand All @@ -560,13 +560,13 @@
"id": 110421,
"name": "User",
"nodeType": "IdentifierPath",
"referencedDeclaration": 114927,
"referencedDeclaration": 114925,
"src": "389:4:146"
},
"referencedDeclaration": 114927,
"referencedDeclaration": 114925,
"src": "389:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
}
},
Expand Down Expand Up @@ -600,10 +600,10 @@
"name": "User",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 114927,
"referencedDeclaration": 114925,
"src": "401:4:146",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_User_$114927_$",
"typeIdentifier": "t_type$_t_contract$_User_$114925_$",
"typeString": "type(contract User)"
}
},
Expand All @@ -618,7 +618,7 @@
"src": "401:17:146",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
}
},
Expand All @@ -642,7 +642,7 @@
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
},
"typeName": {
Expand All @@ -652,13 +652,13 @@
"id": 110428,
"name": "Loot",
"nodeType": "IdentifierPath",
"referencedDeclaration": 114966,
"referencedDeclaration": 114964,
"src": "428:4:146"
},
"referencedDeclaration": 114966,
"referencedDeclaration": 114964,
"src": "428:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
}
},
Expand Down Expand Up @@ -692,10 +692,10 @@
"name": "Loot",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 114966,
"referencedDeclaration": 114964,
"src": "440:4:146",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Loot_$114966_$",
"typeIdentifier": "t_type$_t_contract$_Loot_$114964_$",
"typeString": "type(contract Loot)"
}
},
Expand All @@ -710,7 +710,7 @@
"src": "440:17:146",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
}
},
Expand Down Expand Up @@ -812,7 +812,7 @@
"referencedDeclaration": 110423,
"src": "503:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
}
},
Expand All @@ -823,7 +823,7 @@
"lValueRequested": false,
"memberName": "mint",
"nodeType": "MemberAccess",
"referencedDeclaration": 114921,
"referencedDeclaration": 114919,
"src": "503:9:146",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
Expand Down Expand Up @@ -880,7 +880,7 @@
"referencedDeclaration": 110430,
"src": "529:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
}
},
Expand All @@ -891,7 +891,7 @@
"lValueRequested": false,
"memberName": "mint",
"nodeType": "MemberAccess",
"referencedDeclaration": 114960,
"referencedDeclaration": 114958,
"src": "529:9:146",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
Expand Down Expand Up @@ -970,7 +970,7 @@
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
},
"typeName": {
Expand All @@ -980,13 +980,13 @@
"id": 110460,
"name": "User",
"nodeType": "IdentifierPath",
"referencedDeclaration": 114927,
"referencedDeclaration": 114925,
"src": "643:4:146"
},
"referencedDeclaration": 114927,
"referencedDeclaration": 114925,
"src": "643:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
}
},
Expand Down Expand Up @@ -1020,10 +1020,10 @@
"name": "User",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 114927,
"referencedDeclaration": 114925,
"src": "655:4:146",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_User_$114927_$",
"typeIdentifier": "t_type$_t_contract$_User_$114925_$",
"typeString": "type(contract User)"
}
},
Expand All @@ -1038,7 +1038,7 @@
"src": "655:17:146",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
}
},
Expand All @@ -1062,7 +1062,7 @@
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
},
"typeName": {
Expand All @@ -1072,13 +1072,13 @@
"id": 110467,
"name": "Loot",
"nodeType": "IdentifierPath",
"referencedDeclaration": 114966,
"referencedDeclaration": 114964,
"src": "682:4:146"
},
"referencedDeclaration": 114966,
"referencedDeclaration": 114964,
"src": "682:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
}
},
Expand Down Expand Up @@ -1112,10 +1112,10 @@
"name": "Loot",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 114966,
"referencedDeclaration": 114964,
"src": "694:4:146",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Loot_$114966_$",
"typeIdentifier": "t_type$_t_contract$_Loot_$114964_$",
"typeString": "type(contract Loot)"
}
},
Expand All @@ -1130,7 +1130,7 @@
"src": "694:17:146",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
}
},
Expand Down Expand Up @@ -1168,7 +1168,7 @@
"referencedDeclaration": 110469,
"src": "721:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Loot_$114966",
"typeIdentifier": "t_contract$_Loot_$114964",
"typeString": "contract Loot"
}
},
Expand All @@ -1179,7 +1179,7 @@
"lValueRequested": false,
"memberName": "revealNFT",
"nodeType": "MemberAccess",
"referencedDeclaration": 114965,
"referencedDeclaration": 114963,
"src": "721:14:146",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
Expand Down Expand Up @@ -1236,7 +1236,7 @@
"referencedDeclaration": 110462,
"src": "759:4:146",
"typeDescriptions": {
"typeIdentifier": "t_contract$_User_$114927",
"typeIdentifier": "t_contract$_User_$114925",
"typeString": "contract User"
}
},
Expand All @@ -1247,7 +1247,7 @@
"lValueRequested": false,
"memberName": "revealNFT",
"nodeType": "MemberAccess",
"referencedDeclaration": 114926,
"referencedDeclaration": 114924,
"src": "759:14:146",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/systems/BattleForceSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ contract BattleForceSystem is System {
BattleList.setWinner(_battleId, _msgSender());


BattleUtils.outBattlefield(oppositer);
BattleUtils.loseGame(oppositer, _msgSender());
}
}
Loading

0 comments on commit b92a3db

Please sign in to comment.