First stuff for prosthesis rewrite

This commit is contained in:
Pao
2023-01-15 15:48:14 +01:00
parent 81cd386457
commit eeb7076c13
7 changed files with 101 additions and 147 deletions

View File

@@ -2,6 +2,7 @@ require "TimedActions/ISBaseTimedAction"
ISCutLimb = ISBaseTimedAction:derive("ISCutLimb")
-- TODO Add a check so you can't cut your arm if you don't have hands or if you only have one arm and want to cut that same arm.
function ISCutLimb:isValid()
return self.patientX == self.patient:getX() and self.patientY == self.patient:getY()
@@ -43,6 +44,9 @@ function ISCutLimb:start()
body_damage_part:setCut(true)
body_damage_part:setBleedingTime(ZombRand(10,20))
-- TODO Make the object currently on the hand return to the inventory
end