mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-08 07:52:54 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
/datum/buildmode_mode/boom
|
|
key = "boom"
|
|
|
|
var/devastation = -1
|
|
var/heavy = -1
|
|
var/light = -1
|
|
var/flash = -1
|
|
var/flames = -1
|
|
|
|
/datum/buildmode_mode/boom/show_help(client/c)
|
|
to_chat(c, span_notice("***********************************************************"))
|
|
to_chat(c, span_notice("Mouse Button on obj = Kaboom"))
|
|
to_chat(c, span_notice("NOTE: Using the \"Config/Launch Supplypod\" verb allows you to do this in an IC way (i.e., making a cruise missile come down from the sky and explode wherever you click!)"))
|
|
to_chat(c, span_notice("***********************************************************"))
|
|
|
|
/datum/buildmode_mode/boom/change_settings(client/c)
|
|
devastation = input(c, "Range of total devastation. -1 to none", text("Input")) as num|null
|
|
if(devastation == null)
|
|
devastation = -1
|
|
heavy = input(c, "Range of heavy impact. -1 to none", text("Input")) as num|null
|
|
if(heavy == null)
|
|
heavy = -1
|
|
light = input(c, "Range of light impact. -1 to none", text("Input")) as num|null
|
|
if(light == null)
|
|
light = -1
|
|
flash = input(c, "Range of flash. -1 to none", text("Input")) as num|null
|
|
if(flash == null)
|
|
flash = -1
|
|
flames = input(c, "Range of flames. -1 to none", text("Input")) as num|null
|
|
if(flames == null)
|
|
flames = -1
|
|
|
|
/datum/buildmode_mode/boom/handle_click(client/c, params, obj/object)
|
|
var/list/modifiers = params2list(params)
|
|
|
|
if(LAZYACCESS(modifiers, LEFT_CLICK))
|
|
explosion(object, devastation, heavy, light, flames, flash, adminlog = FALSE, ignorecap = TRUE)
|
|
log_admin("Build Mode: [key_name(c)] caused an explosion(dev=[devastation], hvy=[heavy], lgt=[light], flash=[flash], flames=[flames]) at [AREACOORD(object)]")
|