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

Logic tweak

parent 4c6cda86
No related branches found
No related tags found
2 merge requests!2047RA rework,!1979Corporation developments testing
...@@ -118,12 +118,12 @@ in total, the corporation has enslaved <<print commaNum($corpPeopleEnslaved)>> p ...@@ -118,12 +118,12 @@ 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 */
Share prices in your corporation are driven up by your reputation.
<<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 */
Investors panic as the bubble around your corporation bursts. Share prices are in free fall, and many @@.red;blame you personally@@ for their losses. Investors panic as the bubble around your corporation bursts. Share prices are in free fall, and many @@.red;blame you personally@@ for their losses.
<<set $sharePrice = Math.ceil($sharePrice* (90 - _roll/3))/100, $rep -= 300 + Math.ceil(5 * _roll)>> /* 10-43% drop, -300-800 rep */ <<set $sharePrice = Math.ceil($sharePrice* (90 - _roll/3))/100, $rep -= 300 + Math.ceil(5 * _roll)>> /* 10-43% drop, -300-800 rep */
<<elseif random(1,100) < $rep/1000>> /* up to 20% chance */
Share prices in your corporation are driven up by your reputation.
<<set $sharePrice = Math.ceil($sharePrice*either(101,103))/100>> /* 1-3% rise */
<<elseif $sharePrice*_totalShares > $corpValue>> /* market cap is more than value of assets */ <<elseif $sharePrice*_totalShares > $corpValue>> /* market cap is more than value of assets */
The market consensus is that your corporation is overvalued, driving share prices sharply down. The market consensus is that your corporation is overvalued, driving share prices sharply down.
<<set $sharePrice = Math.ceil($sharePrice*random(92,95))/100>> /* 5-8% drop */ <<set $sharePrice = Math.ceil($sharePrice*random(92,95))/100>> /* 5-8% drop */
......
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