mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-18 20:26:45 -04:00
little adjustments in battle system
This commit is contained in:
parent
3d8ee275e4
commit
07ba4802f4
3 changed files with 51 additions and 44 deletions
|
@ -281,7 +281,11 @@ static __inline int rangrnd(int a, int b) {return rnd(b-a+1)+a;}
|
|||
|
||||
#define SAVE_NAME_SIZE 32
|
||||
|
||||
#define mgochrana(x) (100-(x))
|
||||
static inline int mgochrana(int x) {
|
||||
if (x > 100) return 100;
|
||||
return 100-x;
|
||||
}
|
||||
//#define mgochrana(x) (100-(x))
|
||||
//#define mgochrana(x) (1000/(10+(x)))
|
||||
|
||||
//typy sektoru
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue