Handle unmodifiable values

This commit is contained in:
Cmdr McDonald
2016-11-30 15:08:32 +00:00
parent ee19e9af50
commit ca2136544c

View File

@@ -68,7 +68,7 @@ export default class Module {
if (result != null) {
const modification = Modifications.modifications[name];
if (!modification) {
throw 'Unknown modification ' + name;
return result;
}
// We store percentages as decimals, so to get them back we need to divide by 10000. Otherwise
// we divide by 100. Both ways we end up with a value with two decimal places