mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Radically improves explosion logging. (#61419)
Adds some extra vars and logic to explosion code to make powerful logging entries that should help admins narrow down when explosives get misused. Records this new info in the feedback database and bumps the explosion version +1 as a result of this.
This commit is contained in:
@@ -100,9 +100,12 @@
|
||||
flashing = flash
|
||||
flashing_factor = flash_fact
|
||||
|
||||
/datum/effect_system/reagents_explosion/start()
|
||||
if(explosion_message)
|
||||
location.visible_message(span_danger("The solution violently explodes!"), \
|
||||
span_hear("You hear an explosion!"))
|
||||
/// Starts the explosion. The explosion_source is as part of logging and identifying the source of the explosion for logs.
|
||||
/datum/effect_system/reagents_explosion/start(atom/explosion_source = null)
|
||||
if(!explosion_source)
|
||||
stack_trace("Reagent explosion triggered without a source atom. This explosion may have incomplete logging.")
|
||||
|
||||
dyn_explosion(location, amount, flash_range = flashing_factor)
|
||||
if(explosion_message)
|
||||
location.visible_message(span_danger("The solution violently explodes!"), span_hear("You hear an explosion!"))
|
||||
|
||||
dyn_explosion(location, amount, flash_range = flashing_factor, explosion_cause = explosion_source)
|
||||
|
||||
Reference in New Issue
Block a user