Improves mob resizing (and UpdatePaths). (#75892)

This commit is contained in:
Ghom
2023-06-08 11:59:30 -06:00
committed by GitHub
parent 56cf96cf48
commit 3a8592d258
16 changed files with 133 additions and 79 deletions
+2 -4
View File
@@ -380,16 +380,14 @@
if(..())
return
ADD_TRAIT(owner, TRAIT_GIANT, GENETIC_MUTATION)
owner.resize = 1.25
owner.update_transform()
owner.update_transform(1.25)
owner.visible_message(span_danger("[owner] suddenly grows!"), span_notice("Everything around you seems to shrink.."))
/datum/mutation/human/gigantism/on_losing(mob/living/carbon/human/owner)
if(..())
return
REMOVE_TRAIT(owner, TRAIT_GIANT, GENETIC_MUTATION)
owner.resize = 0.8
owner.update_transform()
owner.update_transform(0.8)
owner.visible_message(span_danger("[owner] suddenly shrinks!"), span_notice("Everything around you seems to grow.."))
/datum/mutation/human/spastic