Skip to content

Commit ba42034

Browse files
committed
decrease cat vision cone, increase cheese spawn amount, decrease rat king cheese consumption, change bite damage scaling to sqrt
1 parent 8e8e1a1 commit ba42034

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

engine/src/main/battlecode/common/GameConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class GameConstants {
8989
public static final double CHEESE_COOLDOWN_PENALTY = 0.01;
9090

9191
/** The amount of cheese the rat king consumes each round. */
92-
public static final int RAT_KING_CHEESE_CONSUMPTION = 3;
92+
public static final int RAT_KING_CHEESE_CONSUMPTION = 2;
9393

9494
/** The amount of health the rat king loses by not eating cheese. */
9595
public static final int RAT_KING_HEALTH_LOSS = 10;
@@ -101,7 +101,7 @@ public class GameConstants {
101101
public static final int SQ_CHEESE_SPAWN_RADIUS = 4;
102102

103103
/** How much cheese each mine spawns at once */
104-
public static final int CHEESE_SPAWN_AMOUNT = 5;
104+
public static final int CHEESE_SPAWN_AMOUNT = 20;
105105

106106
/** The number of rat kings a player starts with. */
107107
public static final int NUMBER_INITIAL_RAT_KINGS = 1;

engine/src/main/battlecode/common/UnitType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public enum UnitType {
44
// health, size, speed, visionRadius, actionCooldown
55
BABY_RAT(100, 1, 20, 90, 10, 10, 17500),
66
RAT_KING(500, 3, 25, 360, 10, 40, 20000),
7-
CAT(10_000, 2, 30, 180, 15, 10, 17500);
7+
CAT(10_000, 2, 17, 180, 15, 10, 17500);
88

99
// amount of health robot initially starts with
1010
public final int health;

engine/src/main/battlecode/world/InternalRobot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public void bite(MapLocation loc, int cheeseConsumed) {
585585

586586
if (cheeseConsumed > 0) {
587587
this.addCheese(-cheeseConsumed);
588-
damage += (int) Math.ceil(Math.log(cheeseConsumed));
588+
damage += (int) Math.ceil(Math.sqrt(cheeseConsumed));
589589
}
590590

591591
targetRobot.addHealth(-damage);

0 commit comments

Comments
 (0)