mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
Removes revenants breaking windows (#66111)
* removes revenants damaging windows * Revenants damage windows, but not break them. * Removes a pointless ?
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#define REVENANT_DEFILE_MIN_DAMAGE 30
|
||||
#define REVENANT_DEFILE_MAX_DAMAGE 50
|
||||
|
||||
|
||||
/mob/living/simple_animal/revenant/ClickOn(atom/A, params) //revenants can't interact with the world directly.
|
||||
var/list/modifiers = params2list(params)
|
||||
@@ -302,8 +305,9 @@
|
||||
for(var/obj/machinery/dna_scannernew/dna in victim)
|
||||
dna.open_machine()
|
||||
for(var/obj/structure/window/window in victim)
|
||||
window.take_damage(rand(30, 80))
|
||||
if(window?.fulltile)
|
||||
if(window.get_integrity() > REVENANT_DEFILE_MAX_DAMAGE)
|
||||
window.take_damage(rand(REVENANT_DEFILE_MIN_DAMAGE, REVENANT_DEFILE_MAX_DAMAGE))
|
||||
if(window.fulltile)
|
||||
new /obj/effect/temp_visual/revenant/cracks(window.loc)
|
||||
for(var/obj/machinery/light/light in victim)
|
||||
light.flicker(20) //spooky
|
||||
@@ -399,3 +403,6 @@
|
||||
tray.set_pestlevel(rand(8, 10))
|
||||
tray.set_weedlevel(rand(8, 10))
|
||||
tray.set_toxic(rand(45, 55))
|
||||
|
||||
#undef REVENANT_DEFILE_MIN_DAMAGE
|
||||
#undef REVENANT_DEFILE_MAX_DAMAGE
|
||||
|
||||
Reference in New Issue
Block a user