@@ -453,8 +453,7 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
453453 var /trapped = 0
454454 var /datum /organ/external/trappedorgan // The limb currently trapped, it must be a leg
455455 var /mob /living/carbon/human/trappeduser
456- var /mob /living/simple_animal/hostile/bear/trappedbear
457- var /mob /living/complex_animal/trappedcanimal
456+ var /mob /living/simple_animal/trappedbear
458457 var /obj /item/weapon/grenade/iedcasing/IED = null
459458 var /image /ied_overlay
460459 health= 60 // so animals don't break it in 1 hit if they attack it.
@@ -475,9 +474,6 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
475474 if (trappedbear)
476475 unlock_atom (trappedbear)
477476 trappedbear = null
478- if (trappedcanimal)
479- unlock_atom (trappedcanimal)
480- trappedcanimal= null
481477 if (IED )
482478 qdel (IED )
483479 IED = null
@@ -609,38 +605,22 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
609605 trappedbear. update_icon()
610606 trappedbear = null
611607 anchored = FALSE
608+
609+ if (istype(trappedbear,/ mob / living/ simple_animal/ complex))
610+ var /mob /living/simple_animal/complex/CA = trappedbear
611+ CA . family+= user
612+ to_chat (user," <span class='notice'>\The [ trappedbear] seems appreciative.</span>" )
612613 return
613614 else
614615 user. visible_message(" <span class='warning'>\The [ H] fails to pry \the [ src ] off of \the [ trappedbear] , and crushes their leg even more!</span>" , \
615616 " <span class='warning'>You fail to pry \the [ src ] off of \the [ trappedbear] , and you crush their leg even more!</span>" )
616617 trappedbear. adjustBruteLoss(5 )
617618 return
618- else if (trappedcanimal)
619- user. visible_message(" <span class='notice'>[ H] tries to pry \the [ src ] off of \the [ trappedcanimal] !</span>" , \
620- " <span class='notice'>You try to pry open \the [ src ] with your bare hands.</span>" )
621-
622- if (do_after(user, src , 40 ) && prob(60 ))
623- user. visible_message(" <span class='notice'>\The [ H] managed to pry \the [ src ] off of \the [ trappedcanimal] !</span>" , \
624- " <span class='notice'>You manage to pry \the [ src ] off!</span>" )
625- playsound (user. loc, ' sound/weapons/handcuffs.ogg' , 30 , 1 , - 3 )
626- trapped = 0
627- unlock_atom (trappedcanimal)
628- trappedcanimal. update_icon()
629- trappedcanimal = null
630- anchored = FALSE
631- trappedcanimal. family+= user
632- to_chat (user," <span class='notice'>\The [ trappedcanimal] seems appreciative.</span>" )
633- return
634- else
635- user. visible_message(" <span class='warning'>\The [ H] fails to pry \the [ src ] off of \the [ trappedcanimal] , and crushes their leg even more!</span>" , \
636- " <span class='warning'>You fail to pry \the [ src ] off of \the [ trappedcanimal] , and you crush their leg even more!</span>" )
637- trappedcanimal. adjustBruteLoss(5 )
638- return
639619 .. ()
640620
641621/ obj / item/ weapon/ beartrap/ try_break( datum / throwparams/ propelparams, hit_atom)
642622 if (health <= 0 )
643- if (trappeduser || trappedbear || trappedcanimal )
623+ if (trappeduser || trappedbear)
644624 armed = 0
645625 anchored = FALSE
646626 update_icon ()
@@ -654,10 +634,6 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
654634 unlock_atom (trappedbear)
655635 trappedbear. update_icon()
656636 trappedbear = null
657- if (trappedcanimal)
658- unlock_atom (trappedcanimal)
659- trappedcanimal. update_icon()
660- trappedcanimal = null
661637 return FALSE
662638
663639 visible_message (" \the [ src ] is smashed apart into nothing but metal..." )
@@ -725,21 +701,10 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
725701 unlock_atom (trappedbear)
726702 trappedbear. update_icon()
727703 trappedbear = null
728- else if (trappedcanimal)
729- user. visible_message(" <span class='notice'>[ user] tries to pry \the [ src ] off of \the [ trappedcanimal] !</span>" , \
730- " <span class='notice'>You try to pry open \the [ src ] with \the [ I. name] .</span>" )
731- if (do_after(user, src , 30 ))
732- user. visible_message(" <span class='notice'>\The [ user] managed to pry \the [ src ] off of \the [ trappedcanimal] !</span>" , \
733- " <span class='notice'>You pry open the bear trap with \the [ I. name] .</span>" )
734- playsound (user. loc, ' sound/weapons/handcuffs.ogg' , 30 , 1 , - 3 )
735- trapped = 0
736- unlock_atom (trappedcanimal)
737- trappedcanimal. update_icon()
738- trappedcanimal = null
739- anchored = FALSE
740- trappedcanimal. family+= user
741- to_chat (user," <span class='notice'>\The [ trappedcanimal] seems appreciative.</span>" )
742- return
704+ if (istype(trappedbear,/ mob / living/ simple_animal/ complex))
705+ var /mob /living/simple_animal/complex/CA = trappedbear
706+ CA . family+= user
707+ to_chat (user," <span class='notice'>\The [ trappedbear] seems appreciative.</span>" )
743708 else
744709 to_chat (user, " <span class='notice'>You carefully set the bear trap off with \the [ I. name] .</span>" )
745710 playsound (src , ' sound/effects/snap.ogg' , 60 , 1 )
@@ -768,7 +733,7 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
768733
769734 else if (istype(AM ,/ mob / living/ simple_animal/ hostile/ bear))
770735 trap (AM )
771- else if (istype(AM ,/ mob / living/ complex_animal ))
736+ else if (istype(AM ,/ mob / living/ simple_animal / complex ))
772737 trap (AM )
773738 else if (isanimal(AM ))
774739 armed = 0
@@ -822,13 +787,6 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
822787 trapped = 0
823788 trappedbear = null
824789 anchored = FALSE
825-
826- if (trappedcanimal)
827- unlock_atom (trappedcanimal)
828- trappedcanimal. gib()
829- trapped = 0
830- trappedcanimal = null
831- anchored = FALSE
832790
833791// Called when the dude is moved from the trap on way or the other.
834792/ obj / item/ weapon/ beartrap/ proc / forcefully_remove( atom/movable / mover)
0 commit comments