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.
AM2R-TimeTrials/scripts/hd_change.gml

17 lines
391 B

//Argument0 = Section | Argument1 = Field | Argument2 = Default value
ini_open('modifiers.ini');
hd = abs(ini_read_real(argument0, argument1, argument2));
//var temp_cheating = false;
//if (ini_read_real('Header', 'Cheating', 0) == 1)
//{
// temp_cheating = true;
//}
ini_close();
//if (global.mod_cheating == 1) { return hd; }
if (hd < argument2) { return argument2; }
return hd;