Jump to content

Template:Money maker/acc

From Community Wiki | Soulbound: Online


Adds one input or output slot into a running total for Template:Money maker. Not for direct use.

Given var (the variable to add to), item, qty, an optional value override and an optional perhour flag, it does:

var := var + qty × ( value or 0 ) × ( actions per hour, unless perhour )

The arithmetic lives here rather than being repeated twenty times in the engine — a fix to the formula is a fix everywhere. An unparsable quantity or value counts as 0, so a typo in one guide never breaks the master table.