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>
This commit is contained in:
Contrabang
2023-11-08 08:52:48 +00:00
committed by GitHub
co-authored by GDN
parent 2b67a00131
commit d3f85c6b67
6 changed files with 118 additions and 3 deletions
@@ -50,3 +50,23 @@
var/mob/living/carbon/human/H = target
var/obj/item/organ/external/E = pick(H.bodyparts)
E.add_embedded_object(T)
/obj/item/projectile/homing/magic/homing_fireball
name = "greater bolt of fireball"
icon_state = "fireball"
damage = 20
damage_type = BRUTE
nodamage = FALSE
//explosion values
var/explosion_devastate = 0
var/explosion_heavy = 1
var/explosion_light = 3
var/explosion_flash = 4
var/explosion_fire = 3
/obj/item/projectile/homing/magic/homing_fireball/on_hit(mob/living/target)
. = ..()
explosion(get_turf(target), explosion_devastate, explosion_heavy, explosion_light, explosion_flash, 0, flame_range = explosion_fire)
if(istype(target)) //multiple flavors of pain
target.adjustFireLoss(10) // does 20 brute, and 10 burn + explosion. Pretty brutal.