Skip to content
Snippets Groups Projects
Commit 48e8f3bc authored by Pregmodder's avatar Pregmodder
Browse files

fixes

parent 95ee13d6
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,13 @@
0.10.7.1-1.1.x
12/01/2018
5
-fixes
-QoL improvements
-possible performance boost
11/30/2018
4
......
......@@ -11,12 +11,18 @@ Edit the sugarcube header and change:
...
return Object.freeze
{return LZString.compressToUTF16(JSON.stringify(e))}},{key:"_deserialize",value:function(e){return JSON.parse(LZString.decompressFromUTF16(e))}}]),e}();
Into this
[{key:"_serialize",value:function(e)
/* look here for changes */
{return JSON.stringify(e)}},{key:"_deserialize",value:function(e){return JSON.parse((!e || e[0]=="{")?e:LZString.decompressFromUTF16(e))}}]),e}();
/* changes end here */
return Object.freeze
......@@ -43,8 +49,8 @@ This uses two separate methods to detect if we are returning to the same page.
no harm in this approach either.
CHANGE 3: Possible long term improvement?
=========================================
CHANGE 3: Ignore expired array
==============================
return e?t.history=clone(W):t.delta=A(W),V.length>0&&(t.expired=[].concat(_toConsumableArray(V))),null!==F&&(t.seed=F.seed),t}function a(e,t){
......
config.history.maxStates = 1; /* If you remove this, I will fucking yell at you. Stop. Doing. It. */
config.saves.autosave = "autosave";
State.expired.disable;
 
/*:: StoryJS [script]*/
 
......@@ -208,7 +208,7 @@
<<if ndef $pharaonTradition>>
<<set $pharaonTradition = 0>>
<</if>>
<<if ndef $weaponsLaw || $wasToggledBefore == 1>>
<<if ndef $weaponsLaw>>
<<set $weaponsLaw = 3>>
<</if>>
<<if ndef $soldierWages>>
......
......@@ -45,7 +45,7 @@ End of week autosaving is currently @@.cyan;ENABLED@@. [[Disable|Options][$autos
<br>
''COLOR CONTROL''
<br>
<<link "flip lighting">><<run flipColors(setup.lightColorMap)>><</link>> //Currently a WIP, use at own risk.//
<<link "flip lighting">><<run flipColors(setup.lightColorMap)>><</link>>
<br>
''IMAGES''
......
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