Change drop_all_held_items to work with cyborgs (#70682)

* Cyborgs now use the same drop_all_held_items that humans do instead of their own snowflake code.
* Fixes Cyborgs not dropping all their modules at the same time,

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
Tim
2022-10-26 05:53:02 -04:00
committed by GitHub
co-authored by Zephyr MrMelbert
parent 5549162b01
commit 51b289d4c8
6 changed files with 14 additions and 15 deletions
+6 -5
View File
@@ -360,13 +360,14 @@
owner.drop_all_held_items()
chainsaw = new(get_turf(owner))
ADD_TRAIT(chainsaw, TRAIT_NODROP, CHAINSAW_FRENZY_TRAIT)
owner.put_in_hands(chainsaw, forced = TRUE)
chainsaw.attack_self(owner)
if(iscarbon(owner))
chainsaw = new(get_turf(owner))
ADD_TRAIT(chainsaw, TRAIT_NODROP, CHAINSAW_FRENZY_TRAIT)
owner.put_in_hands(chainsaw, forced = TRUE)
chainsaw.attack_self(owner)
owner.reagents.add_reagent(/datum/reagent/medicine/adminordrazine, 25)
owner.log_message("entered a blood frenzy", LOG_ATTACK)
owner.reagents.add_reagent(/datum/reagent/medicine/adminordrazine, 25)
to_chat(owner, span_warning("KILL, KILL, KILL! YOU HAVE NO ALLIES ANYMORE, KILL THEM ALL!"))
var/datum/client_colour/colour = owner.add_client_colour(/datum/client_colour/bloodlust)