mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-08 00:39:30 +02:00
9 lines
220 B
Lua
9 lines
220 B
Lua
local Public = {}
|
|
|
|
function Public.fish(event)
|
|
if event.item.name ~= "raw-fish" then return end
|
|
local player = game.players[event.player_index]
|
|
player.character.health = player.character.health - 80
|
|
end
|
|
|
|
return Public |