… | |
… | |
158 | sp *= (int) PATH_SP_MULT (caster, spell); |
158 | sp *= (int) PATH_SP_MULT (caster, spell); |
159 | if (!sp && spell->stats.sp) |
159 | if (!sp && spell->stats.sp) |
160 | sp = 1; |
160 | sp = 1; |
161 | |
161 | |
162 | if (spell->stats.grace && spell->stats.maxgrace) |
162 | if (spell->stats.grace && spell->stats.maxgrace) |
163 | grace = spell->stats.grace * (1.0 + max (0, float (level - spell->level) / spell->stats.maxgrace)); |
163 | grace = spell->stats.grace * (1.f + max (0.f, float (level - spell->level) / spell->stats.maxgrace)); |
164 | else |
164 | else |
165 | grace = spell->stats.grace; |
165 | grace = spell->stats.grace; |
166 | |
166 | |
167 | grace *= PATH_SP_MULT (caster, spell); |
167 | grace *= PATH_SP_MULT (caster, spell); |
168 | if (spell->stats.grace && !grace) |
168 | if (spell->stats.grace && !grace) |