Changed the way Corporation valuation is calculated (now based on outstanding shares). Updated gameplay documentation for RTD

This commit is contained in:
danielyxie
2019-01-04 16:50:27 -08:00
parent 3a439d8208
commit f4e0eaeffb
17 changed files with 307 additions and 171698 deletions
+1
View File
@@ -518,6 +518,7 @@ export let CONSTANTS: IMap<any> = {
** Slightly reduced the amount of money offered to you by investment firms
** Employee salaries now slowly increase over time
** Slightly reduced the effect "Real Estate" has on the Production Multiplier for the Agriculture industry
** Changed the way your Corporation's value is calculated (this is what determines stock price)
* Added getOrders() Netscript function to the TIX API
* Added getAugmentationPrereq() Singularity function (by havocmayhem)
+1 -3
View File
@@ -2938,8 +2938,6 @@ Corporation.prototype.goPublic = function() {
"and you will no longer own them. Your Corporation will receive " +
numeralWrapper.format(initialSharePrice, '$0.000a') + " per share " +
"(the IPO money will be deposited directly into your Corporation's funds).<br><br>" +
"Furthermore, issuing more shares now will help drive up " +
"your company's stock price in the future.<br><br>" +
"You have a total of " + numeralWrapper.format(this.numShares, "0.000a") + " of shares that you can issue.",
});
var yesBtn;
@@ -2988,7 +2986,7 @@ Corporation.prototype.goPublic = function() {
}
Corporation.prototype.updateSharePrice = function() {
var targetPrice = this.determineValuation() / (TOTALSHARES - this.issuedShares);
var targetPrice = this.determineValuation() / (1.5 * TOTALSHARES - this.numShares);
if (this.sharePrice <= targetPrice) {
this.sharePrice *= (1 + (Math.random() * 0.01));
} else {