Talk:Investments/@comment-178.11.225.142-20170329191609/@comment-31632839-20170412130435

tldr;

link to current version at following forum thread: http://thelastsovereign.wikia.com/wiki/Thread:8437

- fixed yhilin bank return and add mercenaries

The yhilin bank return was more tricky then I anticipated. The current return mechanic is not designed to handle an investment that give an return in the same round it was invested in. I could have changed the mechanic, but then i had to rewrite all other investment returns. And those investment returns would have been more complex then it is now. Alternative i could have put an exception in the mechanic for the yhilin bank investment. But I wanted the tool to be easily expansible and more important without prior knowledge of javascript. The exception in the mechanic would have defeated that goal. The more complex return function wouldn't help either.

So for now, I have the 5k ProN return at the start of chapter 2 to be subtracted from the investment cost. With a tool tip stating exactly that. For the propose of the calculation, it does what it is supposed to do. It gives you the 5k ProN return to use in the first investment round.

Although that means that the listed ROI for the that investment is slightly off. As it is calculated as:

ROI=(200k+10k-20k)/20k=950%   or if yhilin score is below 6   ROI=(200k+5k-20k)/20k=925%

while it should be:

ROI=(200k+10k+5k-25k)/25k=760%  or if below 6 ROI=(200k+5k+5k-25k)/25k= 740%

Not sure if the tradeoff - less complicated return function (and also less code rewrite) against  the unaccurate ROI - is worth it...

About the comment thread length: indeed. I should have posted it in the forum in the first place. But tbh I was uncertain if there is any interest in such a tool at all ;)

EDIT: changed link to forum thread