gotchi-battler-game-logic 2.0.7 → 2.0.8

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.
Files changed (50) hide show
  1. package/.vscode/settings.json +4 -4
  2. package/Dockerfile +9 -9
  3. package/README.md +49 -49
  4. package/cloudbuild.yaml +27 -27
  5. package/constants/tournamentManagerAbi.json +208 -208
  6. package/game-logic/index.js +6 -6
  7. package/game-logic/v1.4/constants.js +114 -114
  8. package/game-logic/v1.4/index.js +1366 -1366
  9. package/game-logic/v1.6/constants.js +123 -123
  10. package/game-logic/v1.6/index.js +1406 -1406
  11. package/game-logic/v1.7/constants.js +142 -140
  12. package/game-logic/v1.7/helpers.js +595 -593
  13. package/game-logic/v1.7/index.js +802 -795
  14. package/index.js +12 -12
  15. package/package.json +26 -26
  16. package/schemas/team.json +349 -343
  17. package/scripts/balancing/createCSV.js +126 -126
  18. package/scripts/balancing/fixTrainingGotchis.js +155 -259
  19. package/scripts/balancing/processSims.js +229 -229
  20. package/scripts/balancing/sims.js +278 -278
  21. package/scripts/balancing/v1.7/class_combos.js +43 -43
  22. package/scripts/balancing/v1.7/setTeamPositions.js +105 -105
  23. package/scripts/balancing/v1.7/training_gotchis.json +20161 -20161
  24. package/scripts/balancing/v1.7/trait_combos.json +9 -9
  25. package/scripts/balancing/v1.7.1/class_combos.js +43 -43
  26. package/scripts/balancing/v1.7.1/setTeamPositions.js +122 -122
  27. package/scripts/balancing/v1.7.1/training_gotchis.json +22401 -22401
  28. package/scripts/balancing/v1.7.1/trait_combos.json +9 -9
  29. package/scripts/balancing/v1.7.2/class_combos.js +44 -0
  30. package/scripts/balancing/v1.7.2/setTeamPositions.js +122 -0
  31. package/scripts/balancing/v1.7.2/training_gotchis.json +22402 -0
  32. package/scripts/balancing/v1.7.2/trait_combos.json +10 -0
  33. package/scripts/data/team1.json +213 -213
  34. package/scripts/data/team2.json +200 -200
  35. package/scripts/data/tournaments.json +66 -66
  36. package/scripts/{runBattle.js → runLocalBattle.js} +18 -18
  37. package/scripts/runRealBattle.js +52 -0
  38. package/scripts/simRealBattle.js +121 -0
  39. package/scripts/validateBattle.js +74 -70
  40. package/scripts/validateTournament.js +101 -101
  41. package/utils/contracts.js +12 -12
  42. package/utils/errors.js +29 -29
  43. package/utils/mapGotchi.js +119 -0
  44. package/utils/transforms.js +89 -88
  45. package/utils/validations.js +39 -39
  46. package/debug.log +0 -2
  47. package/game-logic/v1.6/debug.log +0 -1
  48. package/game-logic/v1.7/debug.log +0 -3
  49. package/scripts/data/debug.log +0 -2
  50. 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": "2.0.7",
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": "2.0.8",
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
+ }