Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Partial or full refund when removing a residence #7

Open
WoodenAxe opened this issue Dec 13, 2013 · 1 comment
Open

[Feature] Partial or full refund when removing a residence #7

WoodenAxe opened this issue Dec 13, 2013 · 1 comment

Comments

@WoodenAxe
Copy link

There should be a configurable percentage to credit a player when they remove a residence, defaulting to 0 for current behavior.

@clucky
Copy link

clucky commented May 30, 2014

Agreed. A way to do this since the addition of CostEquation would be to recalculate the cost of the residence according to it's size, then multiply the total by the percentage.


For example, PlayerA has a residence of size 10x20x10 and he wants a refund (configured at 90%). The CostEquation for this particular server is: ((XSize * ZSize) / 20) + YSize.

((XSize * ZSize) / 20) + YSize
((10 * 10) / 20) + 20
(100 / 20) + 20
5 + 20
=25

ANS() * 0.90
25 * 0.90
=22.5

In this example, the player would be refunded 22.5 monies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants