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

htmlify

parent f0556beb
No related branches found
No related tags found
1 merge request!6283They say that a hero could save us
...@@ -2,40 +2,43 @@ ...@@ -2,40 +2,43 @@
<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Main">> <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Main">>
//This is the complete catalog of slaves that you can acquire from other slaveowners. Most of these slaves are not for sale, so persuading their owners to part with them will be extremely expensive.// <span class="scene-intro">
This is the complete catalog of slaves that you can acquire from other slaveowners. Most of these slaves are not for sale, so persuading their owners to part with them will be extremely expensive.
<br><br> </span>
<<include "custom Slaves Database">>
<<set _heroSlaves = App.Utils.buildHeroArray()>> <p>
<<run console.log("total array ", _heroSlaves)>> <<include "custom Slaves Database">>
<<unset $heroSlaves>> <<set _heroSlaves = App.Utils.buildHeroArray()>>
<<run console.log("total array ", _heroSlaves)>>
<<for $i = 0; $i < _heroSlaves.length; $i++>> <<unset $heroSlaves>>
<<if $i > 0>> | <</if>>
<<if _heroSlaves[$i].slaveName == $activeSlave.slaveName>> <<for $i = 0; $i < _heroSlaves.length; $i++>>
<span class="note">_heroSlaves[$i].slaveName</span> <<if $i > 0>> | <</if>>
<<else>> <<if _heroSlaves[$i].slaveName == $activeSlave.slaveName>>
<<print "[[_heroSlaves[$i].slaveName|Complete Catalog][$activeSlave = App.Utils.getHeroSlave(_heroSlaves[" + $i + "])]]">> <span class="note">_heroSlaves[$i].slaveName</span>
<<else>>
<<print "[[_heroSlaves[$i].slaveName|Complete Catalog][$activeSlave = App.Utils.getHeroSlave(_heroSlaves[" + $i + "])]]">>
<</if>>
<</for>>
</p>
<p>
<<set $saleDescription = 1>>
<<include "Long Slave Description">>
<<set $specialSlavesPriceOverride = 1>>
<<set _slaveCost = slaveCost($activeSlave)>>
<<set $specialSlavesPriceOverride = 0>>
<<set _slaveCost = (10*Math.trunc((_slaveCost/10)*2))>>
<<if _slaveCost < 40000>>
<<set _slaveCost += random(20000,60000)>>
<</if>> <</if>>
<</for>> </p>
<br><br>
<<set $saleDescription = 1>>
<<include "Long Slave Description">>
<<set $specialSlavesPriceOverride = 1>>
<<set _slaveCost = slaveCost($activeSlave)>>
<<set $specialSlavesPriceOverride = 0>>
<<set _slaveCost = (10*Math.trunc((_slaveCost/10)*2))>>
<<if _slaveCost < 40000>>
<<set _slaveCost += random(20000,60000)>>
<</if>>
<br><br>
The offered price is <<print cashFormat(_slaveCost)>>. <p>
The offered price is <<print cashFormat(_slaveCost)>>.
<<link "Buy $his slave contract" "New Slave Intro">> <<link "Buy $his slave contract" "New Slave Intro">>
<<set $activeSlave.weekAcquired = $week, $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "Main", $specialSlave = 1>> <<set $activeSlave.weekAcquired = $week, $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "Main", $specialSlave = 1>>
<<run cashX(forceNeg(_slaveCost), "slaveTransfer", $activeSlave)>> <<run cashX(forceNeg(_slaveCost), "slaveTransfer", $activeSlave)>>
<</link>> <</link>>
</p>
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