Skip to content
Snippets Groups Projects
Commit 4c6cda86 authored by kopareigns's avatar kopareigns
Browse files

tweaks

parent c2e40031
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ in total, the corporation has enslaved <<print commaNum($corpPeopleEnslaved)>> p ...@@ -118,7 +118,7 @@ in total, the corporation has enslaved <<print commaNum($corpPeopleEnslaved)>> p
<<elseif $sharePrice*_totalShares < $corpValue*0.5>> /* market cap is less than 50% of value of assets */ <<elseif $sharePrice*_totalShares < $corpValue*0.5>> /* market cap is less than 50% of value of assets */
The market consensus is that your corporation is undervalued, driving share prices sharply up. The market consensus is that your corporation is undervalued, driving share prices sharply up.
<<set $sharePrice = Math.ceil($sharePrice*random(105,108))/100>> /* 5-8% rise */ <<set $sharePrice = Math.ceil($sharePrice*random(105,108))/100>> /* 5-8% rise */
<<elseif random(1,100) < $rep/1000>> /* up to 20% chance * <<elseif random(1,100) < $rep/1000>> /* up to 20% chance */
Share prices in your corporation are driven up by your reputation. Share prices in your corporation are driven up by your reputation.
<<set $sharePrice = Math.ceil($sharePrice*either(101,103))/100>> /* 1-3% rise */ <<set $sharePrice = Math.ceil($sharePrice*either(101,103))/100>> /* 1-3% rise */
<<elseif $sharePrice*_totalShares > $corpValue*1.5>> /* market cap is more than 1.5 times value of assets */ <<elseif $sharePrice*_totalShares > $corpValue*1.5>> /* market cap is more than 1.5 times value of assets */
...@@ -183,7 +183,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com ...@@ -183,7 +183,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com
<</if>>/* closes actions that reduce private ownership percentage */ <</if>>/* closes actions that reduce private ownership percentage */
<<if _PublicOwnershipPercentage <= 5>>//You cannot make the corporation privately held.// <<if _PublicOwnershipPercentage <= 5>><br>//You cannot make the corporation privately held.//
<<else>> /* actions that reduce public ownership percentage */ <<else>> /* actions that reduce public ownership percentage */
<br>Purchase shares from corporation: <br>Purchase shares from corporation:
<<if $cash > 1000*$sharePrice>> <<if $cash > 1000*$sharePrice>>
...@@ -384,7 +384,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com ...@@ -384,7 +384,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com
| <<link "Buy">> | <<link "Buy">>
<<if $slaveAssetPrice*500 < $corpCash>> <<if $slaveAssetPrice*500 < $corpCash>>
<<set $slaveAssets += 500>> <<set $slaveAssets += 500>>
<<set $corpPeopleEnslaved += Math.trunc((500*$slaveAssetPrice)/1000)>> <<set $corpPeopleEnslaved += Math.trunc(($slaveAssetPrice)/2)>>
<<set $corpCash -= 500*$slaveAssetPrice>> <<set $corpCash -= 500*$slaveAssetPrice>>
<<replace "#cashOnHand">> <<replace "#cashOnHand">>
<<print cashFormat($corpCash)>> <<print cashFormat($corpCash)>>
...@@ -403,7 +403,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com ...@@ -403,7 +403,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com
| <<link "Invest Half">> | <<link "Invest Half">>
<<if $slaveAssetPrice*1000 < $corpCash>> <<if $slaveAssetPrice*1000 < $corpCash>>
<<set $slaveAssets += (Math.trunc($corpCash/($slaveAssetPrice*1000)))*500>> <<set $slaveAssets += (Math.trunc($corpCash/($slaveAssetPrice*1000)))*500>>
<<set $corpPeopleEnslaved += Math.trunc(($corpCash/($slaveAssetPrice*4))/1000)>> <<set $corpPeopleEnslaved += Math.trunc($corpCash/2000)>>
<<set $corpCash -= (Math.trunc($corpCash/($slaveAssetPrice*1000)))*($slaveAssetPrice*500)>> <<set $corpCash -= (Math.trunc($corpCash/($slaveAssetPrice*1000)))*($slaveAssetPrice*500)>>
<<replace "#cashOnHand">> <<replace "#cashOnHand">>
<<print cashFormat($corpCash)>> <<print cashFormat($corpCash)>>
...@@ -422,7 +422,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com ...@@ -422,7 +422,7 @@ You hold <<print commaNum($personalShares)>> shares personally while <<print com
| <<link "Massive investment">> | <<link "Massive investment">>
<<if $slaveAssetPrice*1000 < $corpCash>> <<if $slaveAssetPrice*1000 < $corpCash>>
<<set $slaveAssets += (Math.trunc($corpCash/($slaveAssetPrice*500)))*500>> <<set $slaveAssets += (Math.trunc($corpCash/($slaveAssetPrice*500)))*500>>
<<set $corpPeopleEnslaved += Math.trunc(($corpCash/($slaveAssetPrice*2))/1000)>> <<set $corpPeopleEnslaved += Math.trunc($corpCash/1000)>>
<<set $corpCash -= (Math.trunc($corpCash/($slaveAssetPrice*500)))*($slaveAssetPrice*500)>> <<set $corpCash -= (Math.trunc($corpCash/($slaveAssetPrice*500)))*($slaveAssetPrice*500)>>
<<replace "#cashOnHand">> <<replace "#cashOnHand">>
<<print cashFormat($corpCash)>> <<print cashFormat($corpCash)>>
......
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