mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 18:47:20 +01:00
* Squashed commit of the following: commit 979fe5287c3dd33cd5d69bdd968beae245984f2e Author: hal9000PR <charliesteeples@outlook.com> Date: Sat Jul 9 23:40:53 2022 +0100 guts the old system * refactors spell cooldowns into a handler * charge datum * garbage collection * cleanup, renames cooldown var * review changes * boo cooldown fix * styling Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
22 lines
733 B
Plaintext
22 lines
733 B
Plaintext
/obj/effect/proc_holder/spell/infinite_guns
|
|
name = "Lesser Summon Guns"
|
|
desc = "Why reload when you have infinite guns? Summons an unending stream of bolt action rifles. Requires both hands free to use."
|
|
invocation_type = "none"
|
|
|
|
school = "conjuration"
|
|
base_cooldown = 600
|
|
clothes_req = TRUE
|
|
cooldown_min = 10 //Gun wizard
|
|
action_icon_state = "bolt_action"
|
|
|
|
/obj/effect/proc_holder/spell/infinite_guns/create_new_targeting()
|
|
return new /datum/spell_targeting/self
|
|
|
|
/obj/effect/proc_holder/spell/infinite_guns/cast(list/targets, mob/user = usr)
|
|
for(var/mob/living/carbon/C in targets)
|
|
C.drop_item()
|
|
C.swap_hand()
|
|
C.drop_item()
|
|
var/obj/item/gun/projectile/shotgun/boltaction/enchanted/GUN = new
|
|
C.put_in_hands(GUN)
|