mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-20 20:54:35 +01:00
[MIRROR] Port tg statpanel (#9242)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -548,11 +548,11 @@ var/list/organ_cache = list()
|
||||
|
||||
if(!removed && organ_verbs && check_verb_compatability())
|
||||
for(var/verb_path in organ_verbs)
|
||||
add_verb(owner,verb_path) //CHOMPEdit TGPanel
|
||||
add_verb(owner, verb_path)
|
||||
else if(organ_verbs)
|
||||
for(var/verb_path in organ_verbs)
|
||||
if(!(verb_path in save_verbs))
|
||||
remove_verb(owner,verb_path) //CHOMPEdit
|
||||
remove_verb(owner, verb_path)
|
||||
return
|
||||
|
||||
/obj/item/organ/proc/handle_organ_proc_special() // Called when processed.
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
|
||||
dislocated = 1
|
||||
if(istype(owner))
|
||||
add_verb(owner,/mob/living/carbon/human/proc/relocate) //CHOMPEdit TGPanel
|
||||
add_verb(owner, /mob/living/carbon/human/proc/relocate)
|
||||
|
||||
/obj/item/organ/external/proc/relocate()
|
||||
if(dislocated == -1)
|
||||
@@ -235,7 +235,7 @@
|
||||
for(var/obj/item/organ/external/limb in owner.organs)
|
||||
if(limb.dislocated == 1)
|
||||
return
|
||||
remove_verb(owner,/mob/living/carbon/human/proc/relocate) //CHOMPEdit
|
||||
remove_verb(owner, /mob/living/carbon/human/proc/relocate)
|
||||
|
||||
/obj/item/organ/external/update_health()
|
||||
damage = min(max_damage, (brute_dam + burn_dam))
|
||||
@@ -1225,7 +1225,7 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
owner.visible_message(span_danger("\The [W] sticks in the wound!"))
|
||||
implants += W
|
||||
owner.embedded_flag = 1
|
||||
add_verb(owner,/mob/proc/yank_out_object) //CHOMPEdit
|
||||
add_verb(owner, /mob/proc/yank_out_object)
|
||||
owner.throw_alert("embeddedobject", /obj/screen/alert/embeddedobject)
|
||||
W.add_blood(owner)
|
||||
if(ismob(W.loc))
|
||||
|
||||
Reference in New Issue
Block a user