mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[semi-modular] Adds optional bluespace sparks to admin delete (#5791)
* Tested and working * Admin only * Adds it to buildmode too Co-authored-by: Ranged <nickvanderkroon@gmail.com>
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
var/atom/A = D
|
||||
var/coords = ""
|
||||
var/jmp_coords = ""
|
||||
var/turf/T // SKYRAT EDIT -- Bluespace sparks on admin delete
|
||||
if(istype(A))
|
||||
var/turf/T = get_turf(A)
|
||||
T = get_turf(A) // SKYRAT EDIT, orginal: var/turf/T = get_turf(A)
|
||||
if(T)
|
||||
coords = "at [COORD(T)]"
|
||||
jmp_coords = "at [ADMIN_COORDJMP(T)]"
|
||||
@@ -15,10 +16,17 @@
|
||||
message_admins("[key_name_admin(usr)] deleted [D] [jmp_coords]")
|
||||
SSblackbox.record_feedback("tally", "admin_verb", 1, "Delete") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
if(isturf(D))
|
||||
var/turf/T = D
|
||||
T = D // SKYRAT EDIT, orginal: var/turf/T = D
|
||||
T.ScrapeAway()
|
||||
else
|
||||
vv_update_display(D, "deleted", VV_MSG_DELETED)
|
||||
qdel(D)
|
||||
if(!QDELETED(D))
|
||||
vv_update_display(D, "deleted", "")
|
||||
// Skyrat edit addition start -- optional bluespace sparks on delete
|
||||
if(T && prefs.skyrat_toggles & ADMINDEL_ZAP_PREF)
|
||||
playsound(T, 'sound/magic/Repulse.ogg', 100, 1)
|
||||
var/datum/effect_system/spark_spread/quantum/sparks = new
|
||||
sparks.set_up(10, 1, T)
|
||||
sparks.attach(T)
|
||||
sparks.start()
|
||||
|
||||
Reference in New Issue
Block a user