Skip to content

Commit

Permalink
Merge branch 'master' into release-config
Browse files Browse the repository at this point in the history
  • Loading branch information
TheApplePieGod committed Jan 20, 2024
2 parents 3185085 + 8fffe88 commit a300a53
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { schema } from 'battlecode-schema'

export const GAME_VERSION = '2.0.1'
export const SPEC_VERSION = '2.0.1'
export const GAME_VERSION = '2.0.2'
export const SPEC_VERSION = '2.0.2'
export const BATTLECODE_YEAR: number = 2024
export const MAP_SIZE_RANGE = {
min: 30,
Expand Down
2 changes: 1 addition & 1 deletion engine/src/main/battlecode/common/GameConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class GameConstants {
/**
* The current spec version the server compiles with.
*/
public static final String SPEC_VERSION = "2.0.1";
public static final String SPEC_VERSION = "2.0.2";

// *********************************
// ****** MAP CONSTANTS ************
Expand Down
4 changes: 2 additions & 2 deletions engine/src/main/battlecode/world/GameWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ public void triggerTrap(Trap trap, InternalRobot robot, boolean entered){
switch(type){
case STUN:
for (InternalRobot rob : getAllRobotsWithinRadiusSquared(loc, type.enterRadius, trap.getTeam().opponent())){
rob.setMovementCooldownTurns(40);
rob.setActionCooldownTurns(40);
rob.setMovementCooldownTurns(type.opponentCooldown);
rob.setActionCooldownTurns(type.opponentCooldown);
}
break;
case EXPLOSIVE:
Expand Down
6 changes: 5 additions & 1 deletion specs/specs.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# **Formal specification**

_This is the formal specification of the Battlecode 2024 game._ Current version: *2.0.1*
_This is the formal specification of the Battlecode 2024 game._ Current version: *2.0.2*

**Welcome to Battlecode 2024: Breadwars.**

Expand Down Expand Up @@ -286,6 +286,10 @@

# **Appendix: Changelog**

- Version 2.0.2 (January 20, 2024)
- Engine fixes
- Corrected issue where stun trap was using old cooldown (40)

- Version 2.0.1 (January 17, 2024)
- Engine fixes
- getSpawnZoneTeam() will still return int for backwards compatability
Expand Down

0 comments on commit a300a53

Please sign in to comment.