mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Adds more magic items and spells to the wizard spellbook (#15036)
* touches more or less everthing that is magic * Other changes I forgot to put in * removes extra s * nevermind lets not do drake form * Apply suggestions from code review Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * Better variable name * Heart curse removed * Re adds new stuff Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -300,6 +300,7 @@
|
||||
icon = 'icons/obj/lavaland/artefacts.dmi'
|
||||
icon_state = "blue_cube"
|
||||
var/obj/item/warp_cube/linked
|
||||
var/cooldown = FALSE
|
||||
|
||||
/obj/item/warp_cube/Destroy()
|
||||
if(linked)
|
||||
@@ -315,6 +316,9 @@
|
||||
if(is_in_teleport_proof_area(user) || is_in_teleport_proof_area(linked))
|
||||
to_chat(user, "<span class='warning'>[src] sparks and fizzles.</span>")
|
||||
return
|
||||
if(cooldown)
|
||||
to_chat(user, "<span class='warning'>[src] sparks and fizzles.</span>")
|
||||
return
|
||||
|
||||
var/datum/effect_system/smoke_spread/smoke = new
|
||||
smoke.set_up(1, 0, user.loc)
|
||||
@@ -326,6 +330,13 @@
|
||||
var/datum/effect_system/smoke_spread/smoke2 = new
|
||||
smoke2.set_up(1, 0, user.loc)
|
||||
smoke2.start()
|
||||
cooldown = TRUE
|
||||
linked.cooldown = TRUE
|
||||
addtimer(CALLBACK(src, .proc/reset), 20 SECONDS)
|
||||
|
||||
/obj/item/warp_cube/proc/reset()
|
||||
cooldown = FALSE
|
||||
linked.cooldown = FALSE
|
||||
|
||||
/obj/item/warp_cube/red
|
||||
name = "red cube"
|
||||
|
||||
Reference in New Issue
Block a user