Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. int Participation selection / scout difficulty (int n country code, int n battle type)
  2. {
  3. if (n Battle Type! = 1 && n Battle Type! = 2)
  4. {
  5. return 0;
  6. }
  7. int n difficulty = randInt 1 to N (4);
  8. if (n Battle Type == 1)
  9. {
  10. switch (country_ facility (n country code, battle_land (n battle type, n country number)))
  11. {
  12. case 1:
  13. n Difficulty + = 1;
  14. break;
  15. case 2:
  16. n Difficulty + = 2;
  17. break;
  18. case 3:
  19. n Difficulty + = 3;
  20. break;
  21. case 4:
  22. default:
  23. break;
  24. }
  25. }
  26. if (getPlayerCharacterIndexWithEquippedItemID (Battlefieldcorrespondent)> 0)
  27. {
  28. return n Difficulty> 3? 3: n Difficulty;
  29. }
  30. return n difficulty;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement