mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Makes FBP burn repair actually work
This commit is contained in:
@@ -164,20 +164,14 @@
|
|||||||
|
|
||||||
can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||||
if(..())
|
if(..())
|
||||||
var/obj/item/stack/cable_coil/C = tool
|
|
||||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||||
|
if(istype(tool,/obj/item/stack/cable_coil/))
|
||||||
var/limb_can_operate = (affected && affected.open == 2 && affected.burn_dam > 0 && target_zone != "mouth")
|
var/obj/item/stack/cable_coil/C = tool
|
||||||
|
|
||||||
if(!limb_can_operate)
|
|
||||||
return 0
|
|
||||||
|
|
||||||
if(istype(C))
|
|
||||||
if(!C.can_use(10))
|
if(!C.can_use(10))
|
||||||
user << "<span class='danger'>You need ten or more cable pieces to repair this damage.</span>" //usage amount made more consistent with regular cable repair
|
user << "<span class='danger'>You need ten or more cable pieces to repair this damage.</span>" //usage amount made more consistent with regular cable repair
|
||||||
return SURGERY_FAILURE
|
return SURGERY_FAILURE
|
||||||
C.use(10)
|
C.use(10)
|
||||||
return 1
|
return affected && affected.open == 3 && (affected.disfigured || affected.burn_dam > 0) && target_zone != O_MOUTH
|
||||||
|
|
||||||
begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||||
|
|||||||
Reference in New Issue
Block a user