mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Handle unmodifiable values
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user