Skip to content

Commit

Permalink
Buffs Projectile Pastry (#36694)
Browse files Browse the repository at this point in the history
* Update pie_throw.dm

* Update pie_throw.dm
  • Loading branch information
boy2mantwicethefam authored Jul 4, 2024
1 parent 577f92f commit 2fd7e4d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/modules/spells/targeted/projectile/pie_throw.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

school = "evocation"
charge_max = 100
spell_flags = 0
invocation = "FLA'K PA'STRY"
invocation_type = SpI_SHOUT
range = 20

spell_aspect_flags = SPELL_FIRE
spell_flags = WAIT_FOR_CLICK | IS_HARMFUL
duration = 20
projectile_speed = 1
Expand All @@ -29,6 +27,11 @@
return "Allows you to throw an extra pie, and increases the throwing damage of each pie by 4."
return ..()

//It only has empowerment as an available upgrade
/spell/targeted/projectile/pie/get_upgrade_price(upgrade_type)
if(upgrade_type == Sp_POWER)
return Sp_BASE_PRICE * 0.5

/spell/targeted/projectile/pie/empower_spell()
spell_levels[Sp_POWER]++
return "Your spell now throws [spell_levels[Sp_POWER]+1] pies at once!"
Expand All @@ -45,4 +48,4 @@
var/obj/pie = new pie_to_spawn(T)
to_chat(user, "You summon and throw \a [pie].")
pie.throw_at(target, range, (spell_levels[Sp_POWER]+1)*20)
sleep(5)
sleep(max(1, 5/spell_levels[Sp_POWER]))

0 comments on commit 2fd7e4d

Please sign in to comment.