1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

Faster quickCooldown and quickMovement attributes (#42)

Speed up quickCooldown's attack speed, but nearly halve damage.
Speed up quickMovement speed.
This is mostly to make Fast faction feel... fast! Preserves their theoretical 15% increase in dps over Neutral faction.
Technically a buff for Nuclear and Suicide faction too.
This commit is contained in:
Metallumere 2021-04-03 18:07:14 -05:00 committed by GitHub
parent 2e2ea86ed5
commit 64d7b98c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,13 +529,17 @@ local function fillEntityTemplate(entity)
elseif (attribute == "lowestHealth") then
entity["health"] = entity["health"] * 0.50
elseif (attribute == "quickCooldown") then
entity["cooldown"] = entity["cooldown"] * 0.85
entity["cooldown"] = entity["cooldown"] * 0.50
entity["damage"] = entity["damage"] * 0.65
if entity["damagePerTick"] then
entity["damagePerTick"] = entity["damagePerTick"] * 0.65
end
elseif (attribute == "slowMovement") then
entity["movement"] = entity["movement"] * 0.35
entity["distancePerFrame"] = entity["distancePerFrame"] * 0.65
elseif (attribute == "quickMovement") then
entity["movement"] = entity["movement"] * 1.05
entity["distancePerFrame"] = entity["distancePerFrame"] * 1.15
entity["movement"] = entity["movement"] * 1.25
entity["distancePerFrame"] = entity["distancePerFrame"] * 1.35
elseif (attribute == "quickSpawning") then
if entity["spawningCooldownStart"] then
entity["spawningCooldownStart"] = entity["spawningCooldownStart"] * 0.85