Hello there are some .js files that decide how the RPG-Maker will behave, one thing that always bothered me is that the Maker always rounded down variables, this was pretty problematic to me. Now I changed it in the files, the exact location is at line 566
Game_Variables.prototype.setValue = function(variableId, value) {
if (variableId > 0 && variableId < $dataSystem.variables.length) {
if (typeof value === 'number') {
value = Math.round(value); <--- I changed that one
}
this._data[variableId] = value;
this.onChange();
}
};
Am I coming into trouble because of that? Is there anything in the maker to keep that it's important to crunch the floating point numbers? I mean I tested it for a while and I never realized something odd. But I am not sure.
Game_Variables.prototype.setValue = function(variableId, value) {
if (variableId > 0 && variableId < $dataSystem.variables.length) {
if (typeof value === 'number') {
value = Math.round(value); <--- I changed that one
}
this._data[variableId] = value;
this.onChange();
}
};
Am I coming into trouble because of that? Is there anything in the maker to keep that it's important to crunch the floating point numbers? I mean I tested it for a while and I never realized something odd. But I am not sure.