mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-24 03:47:58 +02:00
Merge pull request #303 from Agocelt/MF_locomotive_health_purchase
Purchasing train health heals it by the amount increased
This commit is contained in:
commit
02f6a315c8
@ -1006,8 +1006,13 @@ local function gui_click(event)
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
this.locomotive_max_health = this.locomotive_max_health + 20000
|
local health_per_upgrade = 20000
|
||||||
|
this.locomotive_health = this.locomotive_health + health_per_upgrade
|
||||||
|
this.locomotive_max_health = this.locomotive_max_health + health_per_upgrade
|
||||||
|
|
||||||
|
if this.locomotive_health >= this.locomotive_max_health then
|
||||||
|
this.locomotive_health = this.locomotive_max_health
|
||||||
|
end
|
||||||
--[[
|
--[[
|
||||||
this.locomotive_max_health = this.locomotive_max_health + (this.locomotive_max_health * 0.5)
|
this.locomotive_max_health = this.locomotive_max_health + (this.locomotive_max_health * 0.5)
|
||||||
This exists as a reminder to never ever screw up health pool ever again.
|
This exists as a reminder to never ever screw up health pool ever again.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user