mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +01:00
[MIRROR] Refactors species mutanthands into human component [MDB IGNORE] (#19355)
* Refactors species mutanthands into human component * wew --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
@@ -149,6 +149,7 @@
|
||||
return
|
||||
|
||||
forceMove(drop_loc)
|
||||
SEND_SIGNAL(phantom_owner, COMSIG_CARBON_POST_REMOVE_LIMB, src, dismembered)
|
||||
|
||||
/**
|
||||
* get_mangled_state() is relevant for flesh and bone bodyparts, and returns whether this bodypart has mangled skin, mangled bone, or both (or neither i guess)
|
||||
@@ -321,8 +322,6 @@
|
||||
if(held_index > new_limb_owner.hand_bodyparts.len)
|
||||
new_limb_owner.hand_bodyparts.len = held_index
|
||||
new_limb_owner.hand_bodyparts[held_index] = src
|
||||
if(new_limb_owner.dna.species.mutanthands && !is_pseudopart)
|
||||
new_limb_owner.put_in_hand(new new_limb_owner.dna.species.mutanthands(), held_index)
|
||||
if(new_limb_owner.hud_used)
|
||||
var/atom/movable/screen/inventory/hand/hand = new_limb_owner.hud_used.hand_slots["[held_index]"]
|
||||
if(hand)
|
||||
@@ -368,6 +367,7 @@
|
||||
new_limb_owner.updatehealth()
|
||||
new_limb_owner.update_body()
|
||||
new_limb_owner.update_damage_overlays()
|
||||
SEND_SIGNAL(new_limb_owner, COMSIG_CARBON_POST_ATTACH_LIMB, src, special)
|
||||
return TRUE
|
||||
|
||||
/obj/item/bodypart/head/try_attach_limb(mob/living/carbon/new_head_owner, special = FALSE, abort = FALSE)
|
||||
|
||||
Reference in New Issue
Block a user