Changed combat spells to only consume runes 33% of the time

This is part of the attempt to balance ammo production and consumption rates.
This commit is contained in:
randy 2024-11-10 19:06:13 -07:00
parent 7da14bd3b8
commit 2e65f0d186

View file

@ -222,12 +222,12 @@ public abstract class MagicSpell implements Plugin<SpellType> {
}
if (caster instanceof Player) {
Player p = (Player) caster;
if(p.getEquipment().get(3) != null && p.getEquipment().get(3).getId() == 14726){
if(RandomFunction.getRandom(100) < 13){
p.sendMessage("Your staff negates the rune requirement of the spell.");
//if(p.getEquipment().get(3) != null && p.getEquipment().get(3).getId() == 14726){
if(RandomFunction.getRandom(100) > 33){
//p.sendMessage("Your staff negates the rune requirement of the spell.");
return true;
}
}
//}
if (runes == null) {
return true;
}