Skip to content
Snippets Groups Projects
Commit 4073d26b authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fixRiotGearFromSF' into 'pregmod-master'

fixRiotGearFromSF

Closes #4304

See merge request !11098
parents f855b1d6 29abbc17
No related branches found
No related tags found
1 merge request!11098fixRiotGearFromSF
Pipeline #52537 passed
...@@ -200,18 +200,11 @@ App.Mods.SecExp.riotCenter = (function() { ...@@ -200,18 +200,11 @@ App.Mods.SecExp.riotCenter = (function() {
if (V.SF.Toggle && V.SF.Active >= 1) { if (V.SF.Toggle && V.SF.Active >= 1) {
if (V.SecExp.edicts.SFSupportLevel >= 4 && V.SF.Squad.Armoury >= 8 && !V.SecExp.rebellions.sfArmor) { if (V.SecExp.edicts.SFSupportLevel >= 4 && V.SF.Squad.Armoury >= 8 && !V.SecExp.rebellions.sfArmor) {
App.UI.DOM.appendNewElement("div", node);
const cost = Math.ceil(500000 * App.Mods.SF.env() * (1.15 + (V.SF.Squad.Armoury/10) )); const cost = Math.ceil(500000 * App.Mods.SF.env() * (1.15 + (V.SF.Squad.Armoury/10) ));
App.UI.DOM.appendNewElement("span", node, App.UI.DOM.appendNewElement("div", node, makePurchase(
App.UI.DOM.link( `Give the riot unit access to the combat armor suits of ${V.SF.Lower}.`, cost, "capEx",
`Give the riot unit access to the combat armor suits of ${V.SF.Lower}.`, {handler: () => { V.SecExp.rebellions.sfArmor = 1; }}
() => { ));
V.SecExp.rebellions.sfArmor = 1;
cashX(-cost, "capEx");
}
)
);
App.UI.DOM.appendNewElement("span", node, `Costs ${cashFormat(cost)}.`, "note");
} else { } else {
App.UI.DOM.appendNewElement("div", node, `You have given the riot unit access to the combat armor suits of ${V.SF.Lower}.`); App.UI.DOM.appendNewElement("div", node, `You have given the riot unit access to the combat armor suits of ${V.SF.Lower}.`);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment