mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
direction persistence and resize runtime fix + no resize animation
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
|
||||
/atom/movable/proc/has_large_resize_bounds()
|
||||
var/area/A = get_area(src) //Get the atom's area to check for size limit.
|
||||
return !A.limit_mob_size
|
||||
return A ? !A.limit_mob_size : TRUE //CHOMPEdit
|
||||
|
||||
/proc/is_extreme_size(size)
|
||||
return (size < RESIZE_MINIMUM || size > RESIZE_MAXIMUM)
|
||||
|
||||
@@ -469,6 +469,9 @@
|
||||
blob.transform = matrix()*size_multiplier
|
||||
blob.size_multiplier = size_multiplier
|
||||
|
||||
//dir update
|
||||
blob.dir = dir
|
||||
|
||||
if(l_hand) drop_l_hand()
|
||||
if(r_hand) drop_r_hand()
|
||||
|
||||
@@ -582,14 +585,17 @@
|
||||
//Message
|
||||
blob.visible_message("<b>[src.name]</b> reshapes into a humanoid appearance!")
|
||||
|
||||
//Size update
|
||||
resize(blob.size_multiplier, FALSE, TRUE, ignore_prefs = TRUE)
|
||||
|
||||
//Duration of above animation
|
||||
sleep(8)
|
||||
|
||||
//Record where they should go
|
||||
var/atom/reform_spot = blob.drop_location()
|
||||
|
||||
//Size update
|
||||
resize(blob.size_multiplier, 1, 1, ignore_prefs = TRUE)
|
||||
//dir update
|
||||
dir = blob.dir
|
||||
|
||||
//Move them back where the blob was
|
||||
forceMove(reform_spot)
|
||||
|
||||
Reference in New Issue
Block a user