gotchi-battler-game-logic 2.0.7 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +4 -4
- package/Dockerfile +9 -9
- package/README.md +49 -49
- package/cloudbuild.yaml +27 -27
- package/constants/tournamentManagerAbi.json +208 -208
- package/game-logic/index.js +7 -6
- package/game-logic/v1.4/constants.js +114 -114
- package/game-logic/v1.4/index.js +1366 -1366
- package/game-logic/v1.6/constants.js +123 -123
- package/game-logic/v1.6/index.js +1406 -1406
- package/game-logic/v1.7/constants.js +142 -140
- package/game-logic/v1.7/helpers.js +610 -593
- package/game-logic/v1.7/index.js +802 -795
- package/game-logic/v1.8/constants.js +135 -0
- package/game-logic/v1.8/helpers.js +628 -0
- package/game-logic/v1.8/index.js +826 -0
- package/index.js +12 -12
- package/package.json +26 -26
- package/schemas/team.json +349 -343
- package/scripts/balancing/createCSV.js +126 -126
- package/scripts/balancing/createTrainingGotchis.js +267 -0
- package/scripts/balancing/extractOnchainTraits.js +61 -0
- package/scripts/balancing/fixTrainingGotchis.js +155 -259
- package/scripts/balancing/processSims.js +229 -229
- package/scripts/balancing/sims.js +278 -278
- package/scripts/balancing/v1.7/class_combos.js +43 -43
- package/scripts/balancing/v1.7/mapGotchi.js +119 -0
- package/scripts/balancing/v1.7/setTeamPositions.js +105 -105
- package/scripts/balancing/v1.7/training_gotchis.json +20161 -20161
- package/scripts/balancing/v1.7/training_gotchis_traits.json +520 -0
- package/scripts/balancing/v1.7/trait_combos.json +9 -9
- package/scripts/balancing/v1.7.1/class_combos.js +43 -43
- package/scripts/balancing/v1.7.1/mapGotchi.js +119 -0
- package/scripts/balancing/v1.7.1/setTeamPositions.js +122 -122
- package/scripts/balancing/v1.7.1/training_gotchis.json +22401 -22401
- package/scripts/balancing/v1.7.1/training_gotchis_traits.json +520 -0
- package/scripts/balancing/v1.7.1/trait_combos.json +9 -9
- package/scripts/balancing/v1.7.2/class_combos.js +44 -0
- package/scripts/balancing/v1.7.2/mapGotchi.js +157 -0
- package/scripts/balancing/v1.7.2/setTeamPositions.js +122 -0
- package/scripts/balancing/v1.7.2/training_gotchis.json +22402 -0
- package/scripts/balancing/v1.7.2/training_gotchis_traits.json +520 -0
- package/scripts/balancing/v1.7.2/trait_combos.json +10 -0
- package/scripts/balancing/v1.7.3/class_combos.js +44 -0
- package/scripts/balancing/v1.7.3/mapGotchi.js +164 -0
- package/scripts/balancing/v1.7.3/setTeamPositions.js +122 -0
- package/scripts/balancing/v1.7.3/training_gotchis.json +22402 -0
- package/scripts/balancing/v1.7.3/training_gotchis_traits.json +37 -0
- package/scripts/balancing/v1.7.3/trait_combos.json +10 -0
- package/scripts/data/team1.json +213 -213
- package/scripts/data/team2.json +200 -200
- package/scripts/data/tournaments.json +71 -66
- package/scripts/{runBattle.js → runLocalBattle.js} +18 -18
- package/scripts/runRealBattle.js +52 -0
- package/scripts/simRealBattle.js +121 -0
- package/scripts/validateBattle.js +83 -70
- package/scripts/validateTournament.js +101 -101
- package/utils/contracts.js +12 -12
- package/utils/errors.js +29 -29
- package/utils/mapGotchi.js +119 -0
- package/utils/transforms.js +89 -88
- package/utils/validations.js +39 -39
- package/debug.log +0 -2
- package/game-logic/v1.6/debug.log +0 -1
- package/game-logic/v1.7/debug.log +0 -3
- package/scripts/data/debug.log +0 -2
- package/scripts/debug.log +0 -1
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// Export the gameLoop function for the current version of the game logic
|
|
2
|
-
const versions = require('./game-logic')
|
|
3
|
-
const currentVersion = versions[versions.current]
|
|
4
|
-
|
|
5
|
-
const teamSchema = require('./schemas/team')
|
|
6
|
-
const { webappTeamToInGameTeam, inGameTeamToWebappTeam } = require('./utils/transforms')
|
|
7
|
-
|
|
8
|
-
module.exports = {
|
|
9
|
-
battle: currentVersion.gameLoop,
|
|
10
|
-
teamSchema,
|
|
11
|
-
webappTeamToInGameTeam,
|
|
12
|
-
inGameTeamToWebappTeam
|
|
1
|
+
// Export the gameLoop function for the current version of the game logic
|
|
2
|
+
const versions = require('./game-logic')
|
|
3
|
+
const currentVersion = versions[versions.current]
|
|
4
|
+
|
|
5
|
+
const teamSchema = require('./schemas/team')
|
|
6
|
+
const { webappTeamToInGameTeam, inGameTeamToWebappTeam } = require('./utils/transforms')
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
battle: currentVersion.gameLoop,
|
|
10
|
+
teamSchema,
|
|
11
|
+
webappTeamToInGameTeam,
|
|
12
|
+
inGameTeamToWebappTeam
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gotchi-battler-game-logic",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "index.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
-
},
|
|
8
|
-
"author": "Galaxy Brain Studios",
|
|
9
|
-
"description": "The game logic for the Gotchi Battler game",
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "Galaxy-Brain-Studios/gotchi-battler-game-logic"
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"seedrandom": "^3.0.5",
|
|
16
|
-
"z-schema": "^6.0.2"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@google-cloud/storage": "^7.13.0",
|
|
20
|
-
"axios": "^1.7.4",
|
|
21
|
-
"axios-retry": "^4.5.0",
|
|
22
|
-
"dotenv": "^16.4.5",
|
|
23
|
-
"ethers": "^6.13.4",
|
|
24
|
-
"json-csv": "^4.0.18"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "gotchi-battler-game-logic",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
+
},
|
|
8
|
+
"author": "Galaxy Brain Studios",
|
|
9
|
+
"description": "The game logic for the Gotchi Battler game",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "Galaxy-Brain-Studios/gotchi-battler-game-logic"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"seedrandom": "^3.0.5",
|
|
16
|
+
"z-schema": "^6.0.2"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@google-cloud/storage": "^7.13.0",
|
|
20
|
+
"axios": "^1.7.4",
|
|
21
|
+
"axios-retry": "^4.5.0",
|
|
22
|
+
"dotenv": "^16.4.5",
|
|
23
|
+
"ethers": "^6.13.4",
|
|
24
|
+
"json-csv": "^4.0.18"
|
|
25
|
+
}
|
|
26
|
+
}
|