Browse Source

changed mob casting rate from 1/3 to 1/10

pull/13/head
FatBoy-DOTC 2 years ago
parent
commit
2922fdf623
  1. 2
      src/engine/ai/utilities/CombatUtilities.java

2
src/engine/ai/utilities/CombatUtilities.java

@ -301,7 +301,7 @@ public class CombatUtilities {
if(agent.mobPowers.size() > 0 && agent.mobPowers != null) if(agent.mobPowers.size() > 0 && agent.mobPowers != null)
{ {
//get cast chance 33% cast 67% mele //get cast chance 33% cast 67% mele
int random = ThreadLocalRandom.current().nextInt(agent.mobPowers.size() * 3); int random = ThreadLocalRandom.current().nextInt(agent.mobPowers.size() * 10);
//allow casting of spell //allow casting of spell
if(random <= agent.mobPowers.size()) if(random <= agent.mobPowers.size())
{ {

Loading…
Cancel
Save