Technomancer Fixes

-Instability no longer causes a feedback loop if a bunch of people are clumped together.
-Fixes runtime with illusions
-Fixes carbonmob illusions not copying appearance correctly.
This commit is contained in:
Unknown
2021-03-23 15:49:19 -04:00
parent 5229d72483
commit 74c8af64e2
3 changed files with 3 additions and 1 deletions
@@ -273,6 +273,7 @@
var/outgoing_instability = (amount) * ( 1 / (radius**2) )
L.receive_radiated_instability(outgoing_instability)
src.adjust_instability(-outgoing_instability) //This should prevent feedback loops
// This should only be used for EXTERNAL sources of instability, such as from someone or something glowing.
/mob/living/proc/receive_radiated_instability(amount)
@@ -33,6 +33,7 @@
if(pay_energy(500))
illusion = new(T)
illusion.copy_appearance(copied)
illusion.copy_overlays(copied, TRUE)
to_chat(user, "<span class='notice'>An illusion of \the [copied] is made on \the [T].</span>")
user << 'sound/effects/pop.ogg'
return 1
@@ -33,7 +33,7 @@
appearance = thing_to_copy.appearance
copying = thing_to_copy
density = thing_to_copy.density // So you can't bump into objects that aren't supposed to be dense.
catalogue_data = thing_to_copy.catalogue_data.Copy()
catalogue_data = thing_to_copy.get_catalogue_data()
catalogue_delay = thing_to_copy.catalogue_delay
return TRUE