Skip to content
Snippets Groups Projects
Commit 133e23a3 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

rep fix

parent cf5e4749
No related branches found
No related tags found
1 merge request!7798Market button and Policy cost gate
...@@ -144,7 +144,7 @@ globalThis.policy = function(category) { ...@@ -144,7 +144,7 @@ globalThis.policy = function(category) {
link = App.UI.DOM.link( link = App.UI.DOM.link(
"Repeal", "Repeal",
() => { () => {
if (V.rep > 1000) { if (V.rep >= 1000) {
_.set(V, policyVariable, 0); _.set(V, policyVariable, 0);
applyCost(); applyCost();
if (p.hasOwnProperty("onRepeal")) { if (p.hasOwnProperty("onRepeal")) {
...@@ -179,7 +179,7 @@ globalThis.policy = function(category) { ...@@ -179,7 +179,7 @@ globalThis.policy = function(category) {
link = App.UI.DOM.link( link = App.UI.DOM.link(
"Implement", "Implement",
() => { () => {
if (V.rep > 1000) { if (V.rep >= 1000) {
_.set(V, policyVariable, enable); _.set(V, policyVariable, enable);
applyCost(); applyCost();
if (p.hasOwnProperty("onImplementation")) { if (p.hasOwnProperty("onImplementation")) {
......
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