Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Participation selection / scout difficulty (int n country code, int n battle type)
- {
- if (n Battle Type! = 1 && n Battle Type! = 2)
- {
- return 0;
- }
- int n difficulty = randInt 1 to N (4);
- if (n Battle Type == 1)
- {
- switch (country_ facility (n country code, battle_land (n battle type, n country number)))
- {
- case 1:
- n Difficulty + = 1;
- break;
- case 2:
- n Difficulty + = 2;
- break;
- case 3:
- n Difficulty + = 3;
- break;
- case 4:
- default:
- break;
- }
- }
- if (getPlayerCharacterIndexWithEquippedItemID (Battlefieldcorrespondent)> 0)
- {
- return n Difficulty> 3? 3: n Difficulty;
- }
- return n difficulty;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement