You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
364 B
16 lines
364 B
|
|
//Argument0 = Section | Argument1 = Field | Argument2 = Default value
|
|
ini_open('modifiers.ini');
|
|
hd = argument2 * abs(ini_read_real(argument0, argument1, argument2));
|
|
|
|
//if (ini_read_real('Header', 'Cheating', 0) == 1)
|
|
//{
|
|
// return hd;
|
|
//}
|
|
|
|
ini_close();
|
|
//if (global.mod_cheating == 1) { return hd; }
|
|
if (hd < argument2) { return argument2; }
|
|
return hd;
|
|
|