0 of 0

File information

Last updated

Original upload

Created by

vitamin

Uploaded by

lkjh55006

Virus scan

Safe to use

Tags for this mod

About this mod

simply increase enemy health based on game days
just tring to make late game harder.

Permissions and credits
most enemies increase 10% Hp based on the numbers of game days  (some don't. )
for example:
on day 50. enemy will have 100%+50*10% = 600% HP.


if you think it is not enough
just edit increaseHp.lua  in the zip File
you can see the function i use

require("lua/utils/reflection.lua")

function SetHealth(entity)
--total time you play in ms
local time_ms = reflection_helper( EntityService:GetSingletonComponent("TimeOfDaySystemDataComponent")).time

--turn it into days  second > minute > hour > day 1000 / 60 / 60 / 24
local time_days = time_ms / 86400000

--enemy's Health
local MaxHealth = (HealthService:GetMaxHealth(entity))

local multiplier = 1 + time_days / 10

HealthService:SetMaxHealth(entity, (MaxHealth  * multiplier ))
HealthService:SetHealth(entity, (MaxHealth  * multiplier )) 
end


for example:
if you want to change to 20%
then edit multiplier to

    local multiplier = 1 + time_days / 5

obvious change.

--------------------------

Maybe next time add resistance、damage adjustment and customization for every unit.