Skip to content

Commit

Permalink
last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TriflesChase committed Sep 30, 2024
1 parent 1008acd commit 816d998
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/surgery/organs/organ.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
owner = H

/obj/item/organ/proc/die()
if(robotic)
if(is_robotic())
return
damage = max_damage
status |= ORGAN_DEAD
Expand All @@ -78,7 +78,7 @@
return

//Process infections
if ((robotic) || (sterile) ||(owner && owner.species && (owner.species.flags & IS_PLANT)))
if ((is_robotic()) || (sterile) ||(owner && owner.species && (owner.species.flags & IS_PLANT)))
germ_level = 0
return

Expand Down Expand Up @@ -129,7 +129,7 @@
target.organs_by_name += src
target.organs += src
src.loc = target
if(robotic)
if(is_robotic())
status |= ORGAN_ROBOT

/obj/item/organ/proc/receive_chem(chemical)
Expand Down Expand Up @@ -162,7 +162,7 @@
/obj/item/organ/take_damage(amount, silent=0)
if(!isnum(silent))
return // prevent basic take_damage usage (TODO remove workaround)
if(src.is_robotic())
if(is_robotic())
src.damage += (amount * 0.8)
else
src.damage += amount
Expand Down

0 comments on commit 816d998

Please sign in to comment.