Skip to content

Commit

Permalink
Disable fall damage
Browse files Browse the repository at this point in the history
  • Loading branch information
buj committed May 11, 2024
1 parent d0f1570 commit 6aede3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/darkdustry/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ public enum Gamemode {
}},

survival("Survival"),
tower("Tower Defense"),
tower("Tower Defense") {{
disableCrashDamage = true;
}},

test("Test") {{
enableVnw = false;
Expand Down Expand Up @@ -139,6 +141,7 @@ public enum Gamemode {
public boolean enable1va = false;

public boolean disableAttackMode = false;
public boolean disableCrashDamage = false;

public Team spectatorTeam = Team.get(69);

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/darkdustry/listeners/PluginEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public static void load() {
if (config.mode.disableAttackMode)
state.rules.attackMode = false;

if (config.mode.disableCrashDamage)
state.rules.unitCrashDamageMultiplier = 0.0f;

if (config.mode.enable1va)
OnevAll.nextMap();

Expand Down

0 comments on commit 6aede3a

Please sign in to comment.