Skip to content

Commit

Permalink
Merge pull request #48 from battlecode/post-sprint
Browse files Browse the repository at this point in the history
Post sprint balancing changes
  • Loading branch information
wflms20110333 authored Jan 12, 2022
2 parents eed8179 + 604b6e6 commit 2c9581d
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 15 deletions.
13 changes: 12 additions & 1 deletion client/visualizer/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,18 @@ MapType.CUSTOM]
export const SERVER_MAPS: Map<string, MapType> = new Map<string, MapType>([
["maptestsmall", MapType.DEFAULT],
["eckleburg", MapType.DEFAULT],
["intersection", MapType.DEFAULT]
["intersection", MapType.DEFAULT],
["colosseum", MapType.SPRINT_1],
["fortress", MapType.SPRINT_1],
["jellyfish", MapType.SPRINT_1],
["nottestsmall", MapType.SPRINT_1],
["progress", MapType.SPRINT_1],
["rivers", MapType.SPRINT_1],
["sandwich", MapType.SPRINT_1],
["squer", MapType.SPRINT_1],
["uncomfortable", MapType.SPRINT_1],
["underground", MapType.SPRINT_1],
["valley", MapType.SPRINT_1]
])

export function bodyTypeToString(bodyType: schema.BodyType) {
Expand Down
4 changes: 2 additions & 2 deletions engine/src/main/battlecode/common/GameConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public class GameConstants {
public static final int PASSIVE_LEAD_INCREASE = 2;

/** The number of rounds between adding lead resources to the map. */
public static final int ADD_LEAD_EVERY_ROUNDS = 20;
public static final int ADD_LEAD_EVERY_ROUNDS = 40;

/** The amount of lead to add each round that lead is added. */
public static final int ADD_LEAD = 5;
public static final int ADD_LEAD = 3;

// *********************************
// ****** COOLDOWNS ****************
Expand Down
38 changes: 27 additions & 11 deletions engine/src/main/battlecode/common/RobotType.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public enum RobotType {
*
* @battlecode.doc.robottype
*/
ARCHON ( 0, 250, 10, 24, 1000, -2, 20, 34, 20000),
ARCHON ( 0, 100, 10, 24, 600, -2, 20, 34, 20000),
// BCL BCG AC MC HP DMG AR VR BL

/**
Expand All @@ -27,7 +27,7 @@ public enum RobotType {
*
* @battlecode.doc.robottype
*/
LABORATORY (800, 0, 10, 24, 100, 0, 0, 53, 5000),
LABORATORY (250, 0, 10, 24, 100, 0, 0, 53, 5000),
// BCL BCG AC MC HP DMG AR VR BL

/**
Expand All @@ -36,7 +36,7 @@ public enum RobotType {
*
* @battlecode.doc.robottype
*/
WATCHTOWER (180, 0, 10, 24, 130, 5, 20, 34, 10000),
WATCHTOWER (180, 0, 10, 24, 150, 4, 20, 34, 10000),
// BCL BCG AC MC HP DMG AR VR BL

/**
Expand Down Expand Up @@ -73,7 +73,7 @@ public enum RobotType {
*
* @battlecode.doc.robottype
*/
SAGE ( 0, 50, 200, 25, 100, 45, 13, 20, 10000)
SAGE ( 0, 20, 200, 25, 100, 45, 20, 34, 10000)
// BCL BCG AC MC HP DMG AR VR BL
;

Expand Down Expand Up @@ -238,11 +238,11 @@ public int getMaxHealth(int level) {
if (!this.isBuilding() || level == 1) {
return this.health;
} else if (this == ARCHON) {
return level == 2 ? 1100 : 1200;
return level == 2 ? 1080 : 1944;
} else if (this == LABORATORY) {
return level == 2 ? 110 : 120;
return level == 2 ? 180 : 324;
} else {
return level == 2 ? 143 : 156;
return level == 2 ? 270 : 486;
}
}

Expand All @@ -258,11 +258,11 @@ public int getDamage(int level) {
if (!this.isBuilding() || level == 1) {
return this.damage;
} else if (this == RobotType.ARCHON) {
return level == 2 ? -3 : -4;
return level == 2 ? -4 : -6;
} else if (this == RobotType.LABORATORY) {
return 0;
} else {
return level == 2 ? 6 : 7;
return level == 2 ? 8 : 12;
}
}

Expand Down Expand Up @@ -294,7 +294,15 @@ public int getHealing(int level) {
* @battlecode.doc.costlymethod
*/
public int getLeadMutateCost(int level) {
return level == 2 ? 600 : 0;
if (level != 2) {
return 0;
}
switch (this) {
case ARCHON: return 400;
case WATCHTOWER: return 200;
case LABORATORY: return 200;
default: return 0;
}
}

/**
Expand All @@ -306,7 +314,15 @@ public int getLeadMutateCost(int level) {
* @battlecode.doc.costlymethod
*/
public int getGoldMutateCost(int level) {
return level == 3 ? 100 : 0;
if (level != 3) {
return 0;
}
switch (this) {
case ARCHON: return 80;
case WATCHTOWER: return 60;
case LABORATORY: return 25;
default: return 0;
}
}

/**
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 28 additions & 1 deletion specs/specs.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Formal specification

*This is the formal specification of the Battlecode 2022 game.* Current version: *2022.0.3.1*
*This is the formal specification of the Battlecode 2022 game.* Current version: *2022.1.0.0*

**Welcome to Battlecode 2022: Mutation.**

Expand Down Expand Up @@ -322,6 +322,33 @@
If something is unclear, direct your questions to our Discord where other people may have the same question. We'll update this spec as the competition progresses.

# Appendix: Changelog

- Version 2022.1.0.0 (January 11, 2022)
- Breaking changes: Sprint I Balancing changes
- Archons:
- Decrease nominal worth to 100 Au
- Decrease level 2 Mutation cost to 400 Pb
- Decrease level 3 Mutation cost to 80 Au
- Change mutation health to 600 → 1080 → 1944
- Change mutation repair to 2 → 4 → 6
- Watchtowers:
- Decrease level 2 Mutation cost to 200 Pb
- Decrease level 3 Mutation cost to 60 Au
- Charge mutation health to 150 → 270 → 486
- Change mutation damage to 4 → 8 → 12
- Laboratories:
- Decrease build cost to 250 Pb
- Decrease level 2 Mutation cost to 200 Pb
- Decrease level 3 Mutation cost to 25 Au
- Change mutation health to 100 → 180 → 324
- Sages:
- Decrease build cost to 20 Au
- Increase action radius to 20
- Increase vision radius to 34
- Lead regeneration:
- Decrease rate to 3 Pb every 40 turns
- Sprint maps released

- Version 2022.0.3.1 (January 10, 2022)
- Client
- Fix robot selection on (0, 0)
Expand Down

0 comments on commit 2c9581d

Please sign in to comment.