rewrite augmentation stats description so it's autogenerated and consistent with the actual effects.

This commit is contained in:
Olivier Gagnon
2021-08-15 00:24:31 -04:00
parent 0671c48c86
commit be8d56ced9
9 changed files with 298 additions and 401 deletions
+11
View File
@@ -76,6 +76,7 @@ class DevMenuComponent extends Component {
this.setSF = this.setSF.bind(this);
this.setAllSF = this.setAllSF.bind(this);
this.clearExploits = this.clearExploits.bind(this);
this.processStocks = this.processStocks.bind(this);
this.setStockPrice = this.setStockPrice.bind(this);
this.viewStockCaps = this.viewStockCaps.bind(this);
@@ -378,6 +379,10 @@ class DevMenuComponent extends Component {
}
}
clearExploits() {
Player.exploits = [];
}
addProgram() {
const program = this.state.program;
if(!Player.hasProgram(program)) {
@@ -953,6 +958,12 @@ class DevMenuComponent extends Component {
</div>
<table>
<tbody>
<tr>
<td><span className="text">Exploits:</span></td>
<td>
<button className="std-button touch-right" onClick={this.clearExploits()}>Clear</button>
</td>
</tr>
<tr key={'sf-all'}>
<td><span className="text">All:</span></td>
<td>