Files
Paradise/code/datums/spells/infinite_guns.dm
Contrabang d3f85c6b67 Adds a new loadout to wizard: Fireball. (#23115)
* just fireball.

* requested changes

* review

* Apply suggestions from code review

Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>

* review

* oops

---------

Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
2023-11-08 08:52:48 +00:00

56 lines
2.1 KiB
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"
var/gun_type = /obj/item/gun/projectile/shotgun/boltaction/enchanted
/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 gun_type()
C.put_in_hands(GUN)
/obj/effect/proc_holder/spell/infinite_guns/fireball
name = "Rapid-fire Fireball"
desc = "Multiple Fireballs. Need I explain more? Requires both hands free to use."
school = "evocation"
base_cooldown = 30 SECONDS
clothes_req = FALSE
invocation = "ONI SOMA-SOMA-SOMA"
invocation_type = "shout"
action_icon_state = "explosion"
gun_type = /obj/item/gun/projectile/shotgun/boltaction/enchanted/arcane_barrage/fireball
/obj/item/gun/projectile/shotgun/boltaction/enchanted/arcane_barrage/fireball
name = "small ball of fire"
desc = "A small flame, ready to launch from your hand."
icon = 'icons/obj/cigarettes.dmi'
icon_state = "match_unathi"
item_state = "disintegrate"
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi'
righthand_file = 'icons/mob/inhands/items_righthand.dmi'
color = "#e1ff00" // red + yellow = orange
guns_left = 20
fire_sound = 'sound/magic/Fireball.ogg'
mag_type = /obj/item/ammo_box/magazine/internal/boltaction/enchanted/arcane_barrage/fireball
flags = NOBLUDGEON | DROPDEL
/obj/item/ammo_box/magazine/internal/boltaction/enchanted/arcane_barrage/fireball
ammo_type = /obj/item/ammo_casing/magic/arcane_barrage/fireball
/obj/item/ammo_casing/magic/arcane_barrage/fireball
projectile_type = /obj/item/projectile/magic/fireball
muzzle_flash_effect = null