diff --git a/src/uncategorized/corporationDevelopments.tw b/src/uncategorized/corporationDevelopments.tw index a72913b7832f7fdc2965a6487060a00e7817cda4..f174793bd11204258fca71366c49c9f9c84b9186 100644 --- a/src/uncategorized/corporationDevelopments.tw +++ b/src/uncategorized/corporationDevelopments.tw @@ -19,7 +19,7 @@ <<set $corpValue = $corpCash + ($generalAssets*$generalAssetPrice)+($slaveAssets*$slaveAssetPrice)+($entrapmentAssets*$entrapmentAssetPrice)+($captureAssets*$captureAssetPrice)+($trainingAssets*$trainingAssetPrice)+($surgicalAssets*$surgicalAssetPrice)+($drugAssets*$drugAssetPrice)>> <<set $corpProfit = Math.max(0, Math.trunc( 6666666 / (1 + Math.exp(-1.4 * (Math.log($corpValue) - 18))) ) - random(666, 6666))>> /* formula caps at 6666666, reaches 6.5 million at corpValue of 900 million */ <<set $corpCash = Math.trunc($corpCash + $corpProfit)>> -Your corporation was valued at <<print cashFormat($corpValue)>> and made a profit of <<print cashFormat($corpProfit)>> last week. +Your corporation was valued at @@.yellowgreen;<<print cashFormat($corpValue)>>@@ and made a profit of @@.yellowgreen;<<print cashFormat($corpProfit)>>@@ last week. <<set _addedSlaves = Math.ceil(Math.log($captureAssets+$entrapmentAssets))>> <<if $mercenariesHelpCorp > 0>> The $mercenariesTitle assist it with difficult enslavement targets. Otherwise, it @@ -82,28 +82,28 @@ in total, the corporation has enslaved <<print commaNum($corpPeopleEnslaved)>> p <<set _dividendPerShare = 0.2 * $corpProfit / _totalShares>> <<if _dividendPerShare > 5>> <<set _dividendPerShare = 5 * Math.floor(0.2 * Math.log(_dividendPerShare)/Math.log(1.25))>> - Since it is incredibly profitable, a massive dividend of <<print cashFormat(_dividendPerShare)>>/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*_dividendPerShare)>>@@. + Since it is incredibly profitable, a massive dividend of @@.yellowgreen;<<print cashFormat(_dividendPerShare)>>@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*_dividendPerShare)>>@@. <<set $cash += $personalShares*_dividendPerShare, $corpCash -= _totalShares*_dividendPerShare>> <<elseif _dividendPerShare > 3>> - Since it is extremely profitable, a huge dividend of ¤3/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*3)>>@@. + Since it is extremely profitable, a huge dividend of @@.yellowgreen;¤3@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*3)>>@@. <<set $cash += $personalShares*3, $corpCash -= _totalShares*3>> <<elseif _dividendPerShare > 2>> - Since it is highly profitable, a huge dividend of ¤2/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*2)>>@@. + Since it is highly profitable, a huge dividend of @@.yellowgreen;¤2@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*2)>>@@. <<set $cash += $personalShares*2, $corpCash -= _totalShares*2>> <<elseif _dividendPerShare > 1>> - Since it is very profitable, a large dividend of ¤1/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares)>>@@. + Since it is very profitable, a large dividend of @@.yellowgreen;¤1@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares)>>@@. <<set $cash += $personalShares, $corpCash -= _totalShares>> <<elseif _dividendPerShare > 0.5>> - Since it is quite profitable, a moderate dividend of ¤0.5/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.5)>>@@. + Since it is quite profitable, a moderate dividend of @@.yellowgreen;¤0.5@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.5)>>@@. <<set $cash += Math.trunc($personalShares*0.5), $corpCash -= Math.trunc(_totalShares*0.5)>> <<elseif _dividendPerShare > 0.3>> - Since it is acceptably profitable, a reasonable dividend of ¤0.3/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.3)>>@@. + Since it is acceptably profitable, a reasonable dividend of @@.yellowgreen;¤0.3@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.3)>>@@. <<set $cash += Math.trunc($personalShares*0.3), $corpCash -= Math.trunc(_totalShares*0.3)>> <<elseif _dividendPerShare > 0.2>> - Since it is moderately profitable, a modest dividend of ¤0.2/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.2)>>@@. + Since it is moderately profitable, a modest dividend of @@.yellowgreen;¤0.2@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.2)>>@@. <<set $cash += Math.trunc($personalShares*0.2), $corpCash -= (_totalShares*0.2)>> <<elseif _dividendPerShare > 0.1>> - Since it is modestly profitable, a small dividend of ¤0.1/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.1)>>@@. + Since it is modestly profitable, a small dividend of @@.yellowgreen;¤0.1@@/share was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat($personalShares*0.1)>>@@. <<set $cash += Math.trunc($personalShares*0.1), $corpCash -= Math.trunc(_totalShares*0.1)>> <<elseif $corpProfit > 0>> Since its profits per share are low, a meager dividend was paid out to stockholders; you received @@.yellowgreen;<<print cashFormat(1+Math.ceil(($corpProfit*0.2*$personalShares)/_totalShares))>>@@. @@ -135,19 +135,19 @@ in total, the corporation has enslaved <<print commaNum($corpPeopleEnslaved)>> p <<set $sharePrice = Math.ceil($sharePrice*either(101,102))/100>> /* 1-2% rise */ <</if>> -Shares in your corporation are trading at <<print cashFormat($sharePrice)>>: +Shares in your corporation are trading at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice))>>@@: <<if $oldSharePrice == $sharePrice>> no different from last week. <<elseif $oldSharePrice > $sharePrice>> - down <<print cashFormat(Math.ceil(($oldSharePrice-$sharePrice)*100)/100)>> since last week. + down @@.yellowgreen;<<print cashFormat(Math.ceil(($oldSharePrice-$sharePrice)*100)/100)>>@@ since last week. <<else>> - up <<print cashFormat(Math.ceil(($sharePrice - $oldSharePrice)*100)/100)>> since last week. + up @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice - $oldSharePrice)*100)/100)>>@@ since last week. <</if>> <<set $oldSharePrice = Math.ceil($sharePrice)>> -You hold <<print commaNum($personalShares)>> shares personally while <<print commaNum($publicShares)>> are publicly held. +You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*$personalShares))>>@@ personally while <<print commaNum($publicShares)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*$publicShares))>>@@ are publicly held. <<set _PrivateOwnershipPercentage = Math.trunc(($personalShares/_totalShares)*100)>> <<set _PublicOwnershipPercentage = Math.trunc(($publicShares/_totalShares)*100)>> <span id="CorpAction"> @@ -159,32 +159,109 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <br>Sell personal shares: <<if $personalShares-1000 > $publicShares>> - <<link "1000">><<set $personalShares -= 1000>><<set $publicShares += 1000>><<set $cash += 1000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>><<replace "#CorpAction">><br><<print "You sold 1000 shares, driving the share price down slightly.">><</replace>><</link>> - <<if $personalShares-5000 > $publicShares>> - | <<link "5000">><<set $personalShares -= 5000>><<set $publicShares += 5000>><<set $cash += 5000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>><<replace "#CorpAction">><br><<print "You sold 5000 shares, driving the share price down slightly.">><</replace>><</link>><</if>> - <<if $personalShares-10000 > $publicShares>> - | <<link "10000">><<set $personalShares -= 10000>><<set $publicShares += 10000>><<set $cash += 10000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(97,99,$PC.trading >= 100 ? 99 : 98)))/100>><<replace "#CorpAction">><br><<print "You sold 10000 shares, driving the share price down slightly.">><</replace>><</link>><</if>> - <<if $personalShares-15000 > $publicShares>> - | <<link "15000">><<set $personalShares -= 15000>><<set $publicShares += 15000>><<set $cash += 10000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(96,98,$PC.trading >= 100 ? 98 : 97)))/100>><<replace "#CorpAction">><br><<print "You sold 15000 shares, driving the share price down somewhat.">><</replace>><</link>><</if>> - <<if $personalShares-20000 > $publicShares>> - | <<link "20000">><<set $personalShares -= 20000>><<set $publicShares += 20000>><<set $cash += 10000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(95,97,$PC.trading >= 100 ? 97 : 96)))/100>><<replace "#CorpAction">><br><<print "You sold 20000 shares, driving the share price down significantly.">><</replace>><</link>><</if>> - <<else>> - //You cannot give up majority control.// + <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> + <<set $personalShares -= 1000>> + <<set $publicShares += 1000>> + <<set $cash += 1000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> + <<replace "#CorpAction">> + <br> <<print "You sold <<print commaNum(1000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>> for @@.yellowgreen;<<print cashFormat(Math.ceil(1000*$sharePrice))>>@@" driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-5000 > $publicShares>> + | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@">> + <<set $personalShares -= 5000>> + <<set $publicShares += 5000>> + <<set $cash += 5000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> + <<replace "#CorpAction">> + <br> <<print "You sold <<print commaNum(5000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>> for @@.yellowgreen;<<print cashFormat(Math.ceil(1000*$sharePrice))>>@@" driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-10000 > $publicShares>> + | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@">> <<set $personalShares -= 10000>> + <<set $publicShares += 10000>> + <<set $cash += 10000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> + <<replace "#CorpAction">> + <br> <<print "You sold <<print commaNum(10000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>> for @@.yellowgreen;<<print cashFormat(Math.ceil(10000*$sharePrice))>>@@" driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-15000 > $publicShares>> + | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@">> + <<set $personalShares -= 15000>> + <<set $publicShares += 15000>> + <<set $cash += 15000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> + <<replace "#CorpAction">> + <br> <<print "You sold <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@ driving the share price down somewhat.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-20000 > $publicShares>> + | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@">> + <<set $personalShares -= 20000>> + <<set $publicShares += 20000>> + <<set $cash += 20000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> + <<replace "#CorpAction">> + <br> <<print "You sold <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@ driving the share price down significantly.">> + <</replace>> + <</link>> <</if>> <br>Issue new public shares: <<if $personalShares-1000 > $publicShares>> - <<link "1000">><<set $publicShares += 1000>><<set $corpCash += 1000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>><<replace "#CorpAction">><br><<print "The corporation issued 1000 new shares, driving the share price down slightly.">><</replace>><</link>> - <<if $personalShares-5000 > $publicShares>> - | <<link "5000">><<set $publicShares += 5000>><<set $corpCash += 5000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>><<replace "#CorpAction">><br><<print "The corporation issued 5000 new shares, driving the share price down slightly.">><</replace>><</link>><</if>> - <<if $personalShares-10000 > $publicShares>> - | <<link "10000">><<set $publicShares += 10000>><<set $corpCash += 10000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(97,99)))/100>><<replace "#CorpAction">><br><<print "The corporation issued 10000 new shares, driving the share price down slightly.">><</replace>><</link>><</if>> - <<if $personalShares-15000 > $publicShares>> - | <<link "15000">><<set $publicShares += 15000>><<set $corpCash += 15000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(96,98)))/100>><<replace "#CorpAction">><br><<print "The corporation issued 15000 new shares, driving the share price down somewhat.">><</replace>><</link>><</if>> - <<if $personalShares-20000 > $publicShares>> - | <<link "20000">><<set $publicShares += 20000>><<set $corpCash += 20000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(95,97)))/100>><<replace "#CorpAction">><br><<print "The corporation issued 20000 new shares, driving the share price down significantly.">><</replace>><</link>><</if>> - <<else>> - //You cannot give up majority control.// + <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> + <<set $publicShares += 1000>> + <<set $corpCash += 1000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation issued <<print commaNum(1000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>> for @@.yellowgreen;<<print cashFormat(Math.ceil(1000*$sharePrice))>>@@" driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-5000 > $publicShares>> + | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@">> + <<set $publicShares += 5000>> + <<set $corpCash += 5000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation issued <<print commaNum(5000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>> for @@.yellowgreen;<<print cashFormat(Math.ceil(1000*$sharePrice))>>@@" driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-10000 > $publicShares>> + | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@">> + <<set $publicShares += 10000>> + <<set $corpCash += 10000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation issued <<print commaNum(10000)>> new sharesfor @@.yellowgreen;<<print cashFormat(Math.ceil(1000*$sharePrice))>>@@ driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-15000 > $publicShares>> + | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@">> + <<set $publicShares += 15000>> + <<set $corpCash += 15000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*random(96,98)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation issued <<print commaNum(15000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@ driving the share price down somewhat.">> + <</replace>> + <</link>> + <</if>> + <<if $personalShares-20000 > $publicShares>> + | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@">> <<set $publicShares += 15000>> + <<set $corpCash += 20000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation issued <<print commaNum(20000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@ driving the share price down significantly.">> + <</replace>> + <</link>> <</if>> <</if>>/* closes actions that reduce private ownership percentage */ @@ -193,53 +270,175 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <br>Purchase shares from corporation: <<if $cash > 1000*$sharePrice>> <<if $cash > 1000*$sharePrice>> - <<link "1000">><<set $personalShares += 1000>><<set $cash -= 1000*$sharePrice>><<set $corpCash += 1000*Math.floor($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>><<replace "#CorpAction">><br><<print "You purchased 1000 shares from the corporation, driving the share price down slightly.">><</replace>><</link>><</if>> + <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> + <<set $personalShares += 1000>> + <<set $cash -= 1000*$sharePrice>> + <<set $corpCash += 1000*Math.floor($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "You purchased <<print commaNum(1000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@, from the corporation driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> <<if $cash > 5000*$sharePrice>> - | <<link "5000">><<set $personalShares += 5000>><<set $cash -= 5000*$sharePrice>><<set $corpCash += 5000*Math.floor($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>><<replace "#CorpAction">><br><<print "You purchased 5000 shares from the corporation, driving the share price down slightly.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@">> + <<set $personalShares += 5000>> + <<set $cash -= 5000*$sharePrice>> + <<set $corpCash += 5000*Math.floor($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "You purchased <<print commaNum(5000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@, from the corporation driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> <<if $cash > 10000*$sharePrice>> - | <<link "10000">><<set $personalShares += 10000>><<set $cash -= 10000*$sharePrice>><<set $corpCash += 10000*Math.floor($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(97,99)))/100>><<replace "#CorpAction">><br><<print "You purchased 10000 shares from the corporation, driving the share price down slightly.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@">> + <<set $personalShares += 10000>> + <<set $cash -= 10000*$sharePrice>> + <<set $corpCash += 10000*Math.floor($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "You purchased <<print commaNum(10000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@, from the corporation driving the share price down slightly.">> + <</replace>> + <</link>> + <</if>> <<if $cash > 15000*$sharePrice>> - | <<link "15000">><<set $personalShares += 15000>><<set $cash -= 15000*$sharePrice>><<set $corpCash += 15000*Math.floor($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(96,98)))/100>><<replace "#CorpAction">><br><<print "You purchased 15000 shares from the corporation, driving the share price down somewhat.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@">> + <<set $personalShares += 15000>> + <<set $cash -= 15000*$sharePrice>> + <<set $corpCash += 15000*Math.floor($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "You purchased <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@, from the corporation driving the share price down somewhat.">> + <</replace>> + <</link>> + <</if>> <<if $cash > 20000*$sharePrice>> - | <<link "20000">><<set $personalShares += 20000>><<set $cash -= 20000*$sharePrice>><<set $corpCash += 20000*Math.floor($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(95,97)))/100>><<replace "#CorpAction">><br><<print "You purchased 20000 shares from the corporation, driving the share price down significantly.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@">> + <<set $personalShares += 20000>> + <<set $cash -= 20000*$sharePrice>> + <<set $corpCash += 20000*Math.floor($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> + <<replace "#CorpAction">> + <br> <<print "You purchased <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@, from the corporation driving the share price down significantly.">> + <</replace>> + <</link>> + <</if>> <<else>> - //You are unable to purchase 1000 shares at the current share price.// + //You are unable to purchase <<print commaNum(1000)>> shares at the current share price, valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@.// <</if>> <br>Buy publicly held shares: - <<if $cash > 1000*$sharePrice && $publicShares > 1000>> + <<if $cash > 1000*$sharePrice>> <<if $publicShares > 1000 && $cash >= 1000*$sharePrice>> - <<link "1000">><<set $personalShares += 1000>><<set $publicShares -= 1000>><<set $cash -= 1000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>><<replace "#CorpAction">><br><<print "You bought 1000 shares, driving the share price up slightly.">><</replace>><</link>><</if>> + <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> + <<set $personalShares += 1000>> + <<set $publicShares -= 1000>> + <<set $cash -= 1000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> + <<replace "#CorpAction">> + <br> <<print "You bought <<print commaNum(1000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@, driving the share price up slightly.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 5000 && $cash >= 5000*$sharePrice>> - | <<link "5000">><<set $personalShares += 5000>><<set $publicShares -= 5000>><<set $cash -= 5000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>><<replace "#CorpAction">><br><<print "You bought 5000 shares, driving the share price up slightly.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@">> <<set $personalShares += 1000>> + <<set $publicShares -= 5000>> + <<set $cash -= 5000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> + <<replace "#CorpAction">> + <br> <<print "You bought <<print commaNum(5000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@, driving the share price up slightly.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 10000 && $cash >= 10000*$sharePrice>> - | <<link "10000">><<set $personalShares += 10000>><<set $publicShares -= 10000>><<set $cash -= 10000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(101,103,$PC.trading >= 100 ? 101 : 102)))/100>><<replace "#CorpAction">><br><<print "You bought 10000 shares, driving the share price up slightly.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@">> <<set $personalShares += 10000>> + <<set $publicShares -= 10000>> + <<set $cash -= 10000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> + <<replace "#CorpAction">> + <br> <<print "You bought <<print commaNum(10000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@, driving the share price up slightly.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 15000 && $cash >= 15000*$sharePrice>> - | <<link "15000">><<set $personalShares += 15000>><<set $publicShares -= 15000>><<set $cash -= 15000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(102,104,$PC.trading >= 100 ? 102 : 103)))/100>><<replace "#CorpAction">><br><<print "You bought 15000 shares, driving the share price up somewhat.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@">> <<set $personalShares += 15000>> + <<set $publicShares -= 15000>> + <<set $cash -= 15000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> + <<replace "#CorpAction">> + <br> <<print "You bought <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@, driving the share price up somewhat.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 20000 && $cash >= 20000*$sharePrice>> - | <<link "20000">><<set $personalShares += 20000>><<set $publicShares -= 20000>><<set $cash -= 20000*$sharePrice>><<set $sharePrice = (Math.trunc($sharePrice*either(103,105,$PC.trading >= 100 ? 103 : 104)))/100>><<replace "#CorpAction">><br><<print "You bought 20000 shares, driving the share price up significantly.">><</replace>><</link>><</if>> - <<elseif $publicShares > 1000>> - //You are unable to purchase 1000 shares at the current share price.// + | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@">> <<set $personalShares += 20000>> + <<set $publicShares -= 20000>> + <<set $cash -= 20000*$sharePrice>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> + <<replace "#CorpAction">> + <br> <<print "You bought <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@, driving the share price up significantly.">> + <</replace>> + <</link>> + <</if>> <<else>> - //You cannot make the corporation privately held.// + //You are unable to purchase <<print commaNum(1000)>> shares at the current share price, valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@.// <</if>> <br>Direct the corporation to buy back publicly held shares: - <<if $corpCash > 1000*$sharePrice && $publicShares > 1000>> + <<if $corpCash > 1000*$sharePrice>> <<if $publicShares > 1000 && $corpCash >= 1000*$sharePrice>> - <<link "1000">><<set $publicShares -= 1000>><<set $corpCash -= 1000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>><<replace "#CorpAction">><br><<print "The corporation bought back 1000 public shares, driving the share price up slightly.">><</replace>><</link>><</if>> + <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> + <<set $publicShares -= 1000>> + <<set $corpCash -= 1000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation bought back <<print commaNum(1000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@, driving the share price up slightly.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 5000 && $corpCash >= 5000*$sharePrice>> - | <<link "5000">><<set $publicShares -= 5000>><<set $corpCash -= 5000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>><<replace "#CorpAction">><br><<print "The corporation bought back 5000 public shares, driving the share price up slightly.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@">> + <<set $publicShares -= 5000>> + <<set $corpCash -= 5000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation bought back <<print commaNum(5000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@, driving the share price up slightly.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 10000 && $corpCash >= 10000*$sharePrice>> - | <<link "10000">><<set $publicShares -= 10000>><<set $corpCash -= 10000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(101,103)))/100>><<replace "#CorpAction">><br><<print "The corporation bought back 10000 public shares, driving the share price up slightly.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@">> + <<set $publicShares -= 10000>> + <<set $corpCash -= 10000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation bought back <<print commaNum(10000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@, driving the share price up slightly.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 15000 && $corpCash >= 15000*$sharePrice>> - | <<link "15000">><<set $publicShares -= 15000>><<set $corpCash -= 15000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(102,104)))/100>><<replace "#CorpAction">><br><<print "The corporation bought back 15000 public shares, driving the share price up somewhat.">><</replace>><</link>><</if>> + | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@">> + <<set $publicShares -= 15000>> + <<set $corpCash -= 15000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation bought back <<print commaNum(15000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@, driving the share price up somewhat.">> + <</replace>> + <</link>> + <</if>> <<if $publicShares > 20000 && $corpCash >= 20000*$sharePrice>> - | <<link "20000">><<set $publicShares -= 20000>><<set $corpCash -= 20000*Math.ceil($sharePrice)>><<set $sharePrice = (Math.trunc($sharePrice*random(103,105)))/100>><<replace "#CorpAction">><br><<print "The corporation bought back 20000 public shares, driving the share price up significantly.">><</replace>><</link>><</if>> - <<elseif $publicShares > 1000>> - //The corporation is unable to purchase 1000 shares at the current share price.// + | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@">> + <<set $publicShares -= 20000>> + <<set $corpCash -= 20000*Math.ceil($sharePrice)>> + <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> + <<replace "#CorpAction">> + <br> <<print "The corporation bought back <<print commaNum(20000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@, driving the share price up significantly.">> + <</replace>> + <</link>> + <</if>> <<else>> - //You cannot make the corporation privately held.// + //The corporation is unable to purchase <<print commaNum(1000)>> shares at the current share price, valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@.// <</if>> <</if>> /* closes actions that reduce public ownership percentage */ @@ -248,7 +447,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <br> -<span id="cashOnHand"><<print cashFormat($corpCash)>></span> in cash on hand. +<span id="cashOnHand">@@.yellowgreen;<<print cashFormat($corpCash)>>@@</span> in cash on hand. <span id="update"></span> <br> @@ -275,7 +474,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <<if $detailedCorpControls != 1>> - <span id="genAssets"><<print cashFormat($generalAssetPrice*$generalAssets)>></span> in general assets. + <span id="genAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($generalAssetPrice*$generalAssets))>>@@</span> in general assets. General asset prices are <<if $generalAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $generalAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $generalAssetPrice == 10>>average<<elseif $generalAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. | <<link "Buy">> @@ -337,10 +536,10 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <<set $generalAssets -= 500>> <<set $corpCash += 500*$generalAssetPrice>> <<replace "#cashOnHand">> - <<print cashFormat($corpCash)>> + @@.yellowgreen;<<print cashFormat($corpCash)>>@@ <</replace>> <<replace "#genAssets">> - <<print cashFormat($generalAssetPrice*$generalAssets)>> + @@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ <</replace>> <<replace "#update">> <</replace>> @@ -357,10 +556,10 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <<set $generalAssets = Math.trunc($generalAssets/2)>> <<set $corpCash += $generalAssets*$generalAssetPrice>> <<replace "#cashOnHand">> - <<print cashFormat($corpCash)>> + @@.yellowgreen;<<print cashFormat($corpCash)>>@@ <</replace>> <<replace "#genAssets">> - <<print cashFormat($generalAssetPrice*$generalAssets)>> + @@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ <</replace>> <<replace "#update">> <</replace>> @@ -371,8 +570,8 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <</link>> <<else>> - <span id="generalAssetsDisp"><<print cashFormat($generalAssetPrice*$generalAssets)>> (<<print commaNum($generalAssets/500)>> unit<<if $generalAssets/500 != 1>>s<</if>>)</span> in general assets. - Prices are + <span id="generalAssetsDisp"><<print cashFormat($generalAssetPrice*$generalAssets)>> (<<print commaNum(Math.ceil($generalAssets/500))>> unit<<if Math.ceil($generalAssets/500) != 1>>s<</if>>)</span> in general assets. + Prices are <<if $generalAssetPrice > 10>> @@.yellowgreen;<<print cashFormat($generalAssetPrice*500)>>ea@@. <<elseif $generalAssetPrice < 10>> @@ -387,7 +586,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <<set $slaveAssetPrice = Math.trunc(10*$slaveCostFactor)>> <<if $detailedCorpControls != 1>> - <span id="slavAssets"><<print cashFormat($slaveAssetPrice*$slaveAssets)>></span> in slaves. + <span id="slavAssets"><<print cashFormat(Math.ceil($slaveAssetPrice*$slaveAssets))>></span> in slaves. Slave prices are <<if $slaveAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $slaveAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $slaveAssetPrice == 10>>average<<elseif $slaveAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. | <<link "Buy">> @@ -481,8 +680,8 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <</link>> <<else>> - <span id="slaveAssetsDisp"><<print cashFormat($slaveAssetPrice*$slaveAssets)>> (<<print commaNum(Math.floor($slaveAssets/500))>> unit<<if Math.floor($slaveAssets/500) != 1>>s<</if>>)</span> in slaves. - Prices are + <span id="slaveAssetsDisp"><<print cashFormat(Math.ceil($slaveAssetPrice*$slaveAssets))>> (<<print commaNum(Math.ceil($slaveAssets/500))>> unit<<if Math.ceil($slaveAssets/500) != 1>>s<</if>>)</span> in slaves. + Prices are <<if $slaveAssetPrice > 10>> @@.yellowgreen;<<print cashFormat($slaveAssetPrice*500)>>ea@@ <<elseif $slaveAssetPrice < 10>> @@ -519,7 +718,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <<if $detailedCorpControls != 1>> - <span id="trapAssets"><<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>></span> in legal enslavement assets. + <span id="trapAssets"><<print cashFormat(Math.ceil($entrapmentAssetPrice*$entrapmentAssets))>></span> in legal enslavement assets. Legal enslavement asset prices are <<if $entrapmentAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $entrapmentAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $entrapmentAssetPrice == 10>>average<<elseif $entrapmentAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. | <<link "Buy">> @@ -614,7 +813,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</link>> <<else>> <span id="entrapmentAssetsDisp"><<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>> (<<print commaNum(Math.floor($entrapmentAssets/500))>> unit<<if Math.floor($entrapmentAssets/500) != 1>>s<</if>>)</span> in legal enslavement assets. - Prices are + Prices are <<if $entrapmentAssetPrice > 10>> @@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*500)>>ea@@ <<elseif $entrapmentAssetPrice < 10>> @@ -651,7 +850,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <<if $detailedCorpControls != 1>> - <span id="capAssets"><<print cashFormat($captureAssetPrice*$captureAssets)>></span> in conflict zone enslavement assets. + <span id="capAssets"><<print cashFormat(Math.ceil($captureAssetPrice*$captureAssets))>></span> in conflict zone enslavement assets. Extralegal enslavement asset prices are <<if $captureAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $captureAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $captureAssetPrice == 10>>average<<elseif $captureAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. | <<link "Buy">> @@ -746,7 +945,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</link>> <<else>> <span id="captureAssetsDisp"><<print cashFormat($captureAssetPrice*$captureAssets)>> (<<print commaNum(Math.floor($captureAssets/500))>> unit<<if Math.floor($captureAssets/500) != 1>>s<</if>>)</span> in conflict zone enslavement assets. - Prices are + Prices are <<if $captureAssetPrice > 10>> @@.yellowgreen;<<print cashFormat($captureAssetPrice*500)>>ea@@ <<elseif $captureAssetPrice < 10>> @@ -783,7 +982,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <<if $detailedCorpControls != 1>> - <span id="trainAssets"><<print cashFormat($trainingAssetPrice*$trainingAssets)>></span> in slave training assets. + <span id="trainAssets"><<print cashFormat(Math.ceil($trainingAssetPrice*$trainingAssets))>></span> in slave training assets. Slave training asset prices are <<if $trainingAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $trainingAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $trainingAssetPrice == 10>>average<<elseif $trainingAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. | <<link "Buy">> @@ -878,7 +1077,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</link>> <<else>> <span id="trainingAssetsDisp"><<print cashFormat($trainingAssetPrice*$trainingAssets)>> (<<print commaNum(Math.floor($trainingAssets/500))>> unit<<if Math.floor($trainingAssets/500) != 1>>s<</if>>)</span> of slave training assets. - Prices are + Prices are <<if $trainingAssetPrice > 10>> @@.yellowgreen;<<print cashFormat($trainingAssetPrice*500)>>ea@@ <<elseif $trainingAssetPrice < 10>> @@ -915,7 +1114,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <<if $detailedCorpControls != 1>> - <span id="surgAssets"><<print cashFormat($surgicalAssetPrice*$surgicalAssets)>></span> in surgical assets. + <span id="surgAssets"><<print cashFormat(Math.ceil($surgicalAssetPrice*$surgicalAssets))>></span> in surgical assets. Surgical asset prices are <<if $surgicalAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $surgicalAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $surgicalAssetPrice == 10>>average<<elseif $surgicalAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. | <<link "Buy">> @@ -1010,7 +1209,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</link>> <<else>> <span id="surgicalAssetsDisp"><<print cashFormat($surgicalAssetPrice*$surgicalAssets)>> (<<print commaNum(Math.floor($surgicalAssets/500))>> unit<<if Math.floor($surgicalAssets/500) != 1>>s<</if>>)</span> in surgical assets. - Prices are + Prices are <<if $surgicalAssetPrice > 10>> @@.yellowgreen;<<print cashFormat($surgicalAssetPrice*500)>>ea@@ <<elseif $surgicalAssetPrice < 10>> @@ -1047,7 +1246,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</if>> <<if $detailedCorpControls != 1>> - <span id="drAssets"><<print cashFormat($drugAssetPrice*$drugAssets)>></span> in pharmaceutical assets. + <span id="drAssets"><<print cashFormat(Math.ceil($drugAssetPrice*$drugAssets))>></span> in pharmaceutical assets. Drug asset prices are <<if $drugAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $drugAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $drugAssetPrice == 10>>average<<elseif $drugAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. | <<link "Buy">> @@ -1142,7 +1341,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com <</link>> <<else>> <span id="drugAssetsDisp"><<print cashFormat($drugAssetPrice*$drugAssets)>> (<<print commaNum(Math.floor($drugAssets/500))>> unit<<if Math.floor($drugAssets/500) != 1>>s<</if>>)</span> in pharmaceutical assets. - Prices are + Prices are <<if $drugAssetPrice > 10>> @@.yellowgreen;<<print cashFormat($drugAssetPrice*500)>>ea@@ <<elseif $drugAssetPrice < 10>>