Skip to content
Snippets Groups Projects
Commit 2593f723 authored by vas's avatar vas
Browse files

better information for the user

parent 3a357216
Branches
Tags
No related merge requests found
...@@ -641,9 +641,14 @@ window.rulesAssistantOptions = (function() { ...@@ -641,9 +641,14 @@ window.rulesAssistantOptions = (function() {
} }
render(data) { render(data) {
const elem = document.createElement("textarea"); const elem = document.createElement("div");
elem.innerHTML = data; const textarea = document.createElement("textarea");
elem.onblur = () => current_rule.condition.data = elem.value; textarea.innerHTML = data;
textarea.onblur = () => current_rule.condition.data = elem.value;
elem.appendChild(textarea);
const explanation = document.createElement("div");
explanation.innerHTML = "Insert a valid <a target='_blank' class='link-external' href='https://www.w3schools.com/js/js_comparisons.asp'>JavaScript comparison and/or logical operation</a>.";
elem.appendChild(explanation);
return elem; return elem;
} }
} }
......
...@@ -2930,3 +2930,8 @@ Done! ...@@ -2930,3 +2930,8 @@ Done!
<<if $brothelAdsSpending > 0 && $brothel == 0>> <<if $brothelAdsSpending > 0 && $brothel == 0>>
<<set $brothelAdsSpending = 0>> <<set $brothelAdsSpending = 0>>
<</if>> <</if>>
<<run $defaultRules.filter(x => !([true, false, "no default setting"].includes(x.set.preg))).forEach(x => {
if (x.set.preg === -1) x.set.preg = true;
else x.set.preg = false;
})>>
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
''@@.red;INCOMPATIBLE SAVE WARNING:@@'' your saved game was created using version $ver and you are using later version which New Game Plus cannot reconcile. Please start a new game. ''@@.red;INCOMPATIBLE SAVE WARNING:@@'' your saved game was created using version $ver and you are using later version which New Game Plus cannot reconcile. Please start a new game.
<br><br> <br><br>
<</if>> <</if>>
<<if $defaultRules.length > 0 && $defaultRules[0].condition == undefined>>
''@@.red;INCOMPATIBILITY WARNING:@@'' the rules assistant format has changed. In the Options Menu, please ''Reset RA Rules''
<</if>>
<<if def $organsCompleted>> <<if def $organsCompleted>>
<<unset $organsCompleted>> <<unset $organsCompleted>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment