Skip to content

Commit

Permalink
Update _spellgem.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
BurgerLUA authored Apr 10, 2024
1 parent 121cdce commit e009cb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/_core/obj/item/weapon/ranged/spellgem/_spellgem.dm
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@

/obj/item/weapon/ranged/spellgem/pre_shoot(var/mob/caller,var/atom/object,location,params,var/damage_multiplier=1)


. = ..()

if(. && caller.health)
Expand All @@ -111,7 +110,7 @@

if(is_living(caller))
var/mob/living/L = caller
final_mana_cost *= 1 - 25 * L.get_skill_power(casting_type) / 100 //Up to 25% reduction at level 100.
final_mana_cost *= 1 - L.get_skill_power(casting_type,0,1,2)*0.25 //Up to 25% reduction at level 100. Level 200 is 50%
if(final_mana_cost > caller.health.mana_current)
caller.to_chat(span("warning","You try to push with all your mana, but the spell fizzles!"))
return FALSE //Fail
Expand Down

0 comments on commit e009cb3

Please sign in to comment.