1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00

rpg - health regen tweak

This commit is contained in:
Gerkiz 2021-02-04 20:21:48 +01:00
parent 7712532ac7
commit b9d0781332
2 changed files with 9 additions and 1 deletions

View File

@ -1117,7 +1117,7 @@ local function on_player_used_capsule(event)
rpg_t[player.index].last_spawned = game.tick + object.tick
Functions.update_mana(player)
local reward_xp = object.mana_cost * 0.045
local reward_xp = object.mana_cost * 0.085
if reward_xp < 1 then
reward_xp = 1
end

View File

@ -72,6 +72,7 @@ function Public.reset_wave_defense()
this.check_collapse_position = true
this.modified_boss_health = true
this.resolve_pathing = true
this.increase_damage_per_wave = false
this.fill_tiles_so_biter_can_path = true
end
@ -191,6 +192,13 @@ function Public.fill_tiles_so_biter_can_path(boolean)
return this.fill_tiles_so_biter_can_path
end
function Public.increase_damage_per_wave(boolean)
if (boolean or boolean == false) then
this.increase_damage_per_wave = boolean
end
return this.increase_damage_per_wave
end
function Public.set_biter_health_boost(number)
if number and type(number) == 'number' then
this.biter_health_boost = number