Thread:Shadowbrooks/@comment-15636815-20150119011531/@comment-15636815-20150125052018

Since Stock Exchange has no effect on the prices of buildings, I simply record whatever is on the screen. *wink*

Stock Exchange gives a 20% discount off the prices of themes and extensions. For those items, I do one or more of the following.
 * Record the price on the screen (with Stock Exchange in use). Then use maths (divide by 0.8) to calculate the full price.
 * Record the price on the screen (with Stock Exchange in use). Then move Stock Exchange into Storage and record the new price.
 * Record the price on the screen (with Stock Exchange in Storage). Use that price with Cost for the full cost. Then use that same price again with CostExch, and let the template calculate the discounted price.
 * Record the price on the screen (with Stock Exchange in use). Use that price with Cost for the discounted cost. Then use that same price again with CostNoExch, and let the template calculate the full price.

Players get a 10% discount when buying buildings after completing Sam's final contract. A player either has completed Sam's final contract or hasn't, and there's no way to go back and forth between the two conditions. Therefore, calculating prices of buildings always involves calculation in one direction or the other.
 * Do the maths.
 * If Sam is not complete, record the full price shown. Then multiply by 0.9 to find the discounted price.
 * If Sam is complete, record the discounted price shown. Then divide by 0.9 to find the full price.
 * Let the Wiki do the maths.
 * If Sam is not complete, record the price on the screen. Use that price with Cost for the full cost. Then use that same price again with CostSam, and let the template calculate the discounted price.
 * If Sam is complete, record the price on the screen. Use that price with Cost for the discounted cost. Then use that same price again with CostNoSam, and let the template calculate the full price.

So, did I clear up your confusion, or did I create more? LOL