[Discuss] Experimental taxes - math check pls
Jamie Cheyfetz
jamie.cheyfetz at gmail.com
Wed Nov 1 07:46:21 CET 2006
On 10/31/06, Christopher Clarke <talkingrock at gmail.com> wrote:
> tax_base = round(gold value on region details * production % * days
> since last tax)
Close, but I think the taxes are checked every day. But the idea is
right. You also missed looting.
>
> tax_collected = round(tax_base * tax %)
>
> net_taxes = tax_collected - militia cost - maintenance cost
Looks right.
>
> oaths = round(net_taxes * oath %)
>
> to_realm = round(net_taxes * to realm %)
I'm not sure, but I think it might be:
to_realm = floor( net_taxes * to_realm_pct );
oaths_portion = net_taxes - to_realm;
I'm not a region commander on the test islands, so i can't check, but
I would think that the portion that is available for oaths is only
what remains after what is sent to the realm. Now that I think on it
a bit more, I would think that the oaths would take priority over the
to_realm_pct. Otherwise, it would be easy to "cheat" knights out of
gold by changing the to_realm_pct value after they had sworn. So
perhaps it is like this instead:
oaths_portion = floor( net_taxes * total_oaths_pct );
to_realm = floor( ( net_taxes - oaths_portion ) * to_realm_pct );
>
> extra_tax = round(tax_base * extra tax %)
>
> lord share = extra_tax + (net_taxes - oaths - to_realm)
>
More information about the Discuss
mailing list