1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00
ComfyFactorio/modules/towny/combat_balance.lua
2019-12-18 12:25:51 +01:00

11 lines
426 B
Lua

local Public = {}
function Public.fish(event)
if event.item.name ~= "raw-fish" then return end
local player = game.players[event.player_index]
--local player_max_health = player.character.prototype.max_health + player.character_health_bonus + player.force.character_health_bonus
--if player.character.health >= player_max_health then return end
player.character.health = player.character.health - 70
end
return Public