Change module modding to have absolute values entered

This commit is contained in:
Felix Linker
2018-09-15 00:40:19 +02:00
parent f86ce62c27
commit 2456ce330b
5 changed files with 125 additions and 60 deletions

View File

@@ -219,7 +219,7 @@ export default class ModificationsMenu extends TranslatedComponent {
this.lastNeId = modName;
(editable ? modifiableModifications : modifications).push(
<Modification key={ key } ship={ ship } m={ m }
value={m.getModValue(modName) / 100 || 0} modItems={this.modItems}
value={m.getPretty(modName) || 0} modItems={this.modItems}
onChange={onChange} onKeyDown={this._keyDown} name={modName}
editable={editable} handleModChange = {this._handleModChange} />
);