mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-13 08:57:01 +01:00
Merge pull request #209 from sheepishgoat/size-scaler-coccoon
Web weaving cocoons now scale with target mob size
This commit is contained in:
@@ -51,6 +51,13 @@
|
||||
return FALSE
|
||||
|
||||
spawned_cocoon.icon_state = pick("cocoon_large1","cocoon_large2","cocoon_large3")
|
||||
var/cocoon_size = target.size_multiplier
|
||||
var/matrix/new_matrix = new
|
||||
|
||||
new_matrix.Scale(cocoon_size)
|
||||
new_matrix.Translate(0,16 * (cocoon_size-1))
|
||||
spawned_cocoon.transform = new_matrix
|
||||
|
||||
return TRUE
|
||||
|
||||
user.visible_message("<span class='warning'>[user] attempts to remove [target]'s [target.wear_suit]!</span>", "<span class='warning'>You attempt to remove [target]'s [target.wear_suit].</span>")
|
||||
|
||||
Reference in New Issue
Block a user