Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author DeeZ
- **/
- //Formulas.java :
- public static int calculDeshonorWin(Fighter F, ArrayList<Fighter> loosers)
- {
- boolean fighterAlign = F.getPersonnage().get_align > 0;
- boolean loosersAlign = false;
- for(Fighter f : loosers)
- {
- if(f.getPersonnage() == null)continue;
- if(f.getPersonnage().get_align() > 0)
- {
- loosersAlign = true;
- break;
- }
- }
- if(winnersAlign || loosersAlign)
- return 1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment