From 0234c1bfd647b4177e85be4dba84960fe02a0662 Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Sun, 10 Jun 2018 17:11:05 -0400 Subject: [PATCH] Fix --- src/uncategorized/corporationDevelopments.tw | 50 ++++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/uncategorized/corporationDevelopments.tw b/src/uncategorized/corporationDevelopments.tw index 94df888fe15..6df3bcf1c4a 100644 --- a/src/uncategorized/corporationDevelopments.tw +++ b/src/uncategorized/corporationDevelopments.tw @@ -165,7 +165,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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 $personalShares-5000 > $publicShares>> @@ -175,7 +175,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -185,7 +185,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>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>> @@ -196,7 +196,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"You sold <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@ driving the share price down somewhat." <</replace>> <</link>> <</if>> @@ -207,7 +207,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"You sold <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@ driving the share price down significantly." <</replace>> <</link>> <</if>> @@ -222,7 +222,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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 $personalShares-5000 > $publicShares>> @@ -231,7 +231,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -241,7 +241,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"The corporation issued <<print commaNum(10000)>> new sharesfor @@.yellowgreen;<<print cashFormat(Math.ceil(1000*$sharePrice))>>@@ driving the share price down slightly." <</replace>> <</link>> <</if>> @@ -251,7 +251,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -260,7 +260,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -280,7 +280,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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 $cash > 5000*$sharePrice>> @@ -290,7 +290,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>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>> @@ -301,7 +301,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -312,7 +312,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -323,7 +323,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -339,7 +339,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"You bought <<print commaNum(1000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@, driving the share price up slightly." <</replace>> <</link>> <<if $publicShares > 5000 && $cash >= 5000*$sharePrice>> @@ -348,7 +348,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"You bought <<print commaNum(5000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*5000))>>@@, driving the share price up slightly." <</replace>> <</link>> <</if>> @@ -358,7 +358,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"You bought <<print commaNum(10000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*10000))>>@@, driving the share price up slightly." <</replace>> <</link>> <</if>> @@ -368,7 +368,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"You bought <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*15000))>>@@, driving the share price up somewhat." <</replace>> <</link>> <</if>> @@ -378,7 +378,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"You bought <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*20000))>>@@, driving the share price up significantly." <</replace>> <</link>> <</if>> @@ -395,7 +395,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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 $publicShares > 5000 && $corpCash >= 5000*$sharePrice>> @@ -404,7 +404,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -414,7 +414,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -424,7 +424,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> @@ -434,7 +434,7 @@ You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<p <<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.">> + <br>"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>> -- GitLab