Skip to content

Commit

Permalink
Merge pull request #382 from randovania/tweak-env-damage
Browse files Browse the repository at this point in the history
Change constant env dps to account for the tick rate
  • Loading branch information
ThanatosGit authored Jun 22, 2024
2 parents 602697f + 4d8928e commit a8e2450
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ def apply_constant_damage(editor: PatcherEditor, configuration: dict) -> None:
if configuration[config_field] is None:
continue

damage = configuration[config_field]
# Uses the default time per tick of 0.5
damage = configuration[config_field] / 2

# Max damage per tick
# Damage per tick
actor["components"][1]["arguments"][19]["value"] = damage
# Damage Scale
actor["components"][1]["arguments"][28]["value"] = damage
# Damage of first tick. Set to half to give room for player error
actor["components"][2]["arguments"][19]["value"] = damage / 2
# Damage of first tick
actor["components"][2]["arguments"][19]["value"] = damage

0 comments on commit a8e2450

Please sign in to comment.