예제 #1
0
 private int attackBonus(Weapon w)
 {
     //assume all attacks are melee for now
     //assume only one basic attack bonus
     int temp = 0;
     temp += e.getBasicAttackBonus(0);
     temp += w.getPlus();
     temp += e.strengthModifier();
     Debug.Log(e.getName()+"'s "+(TattackRoll+temp)+" vs AC"+" ("+AC+")");
     return temp;
 }