Bug with transferring resources to other cities
main city has 20,000 of each resource.
2nd city has 500 of each resource.
2nd city warehouse capacity is 1,000.
I attempt to transfer 5,000 of each resource from main to 2nd by mistake, forgetting the warehouse capacity.
The end result is:
main city has 15,000 of each resource.
2nd city has 1,000 of each resource.
I submitted this to kingdomsupport@haypi.com and got this ridiculous answer:
----------
Dear player
Hello.
Please make sure your distination city's warehouse can hold all the resource you want to dispatch.
Thank you for your question and have fun in the game.
Best regards
Tracy
Haypi Kingdom Team
---------
A canned response to an obvious bug. This is nonsense! I wrote back:
----------
Tracy, you are missing the point. This is a BUG.
If I have 20,000 of each resource in my main city and my second city has a
warehouse capacity of 1,000 each, then if I try to transfer 10,000 of each from
my main city to my second city the behavior should be:
1,000 of each is transferred from my main city to my second city.
19,000 of each remain in my main city.
Instead what is happening is this:
1,000 of each is transferred from my main city to my second city.
10,000 of each remain in my main city.
The pseudo-code would look like this:
$second_city_warehouse_capacity = 1000;
$second_city_total_amount = 500;
$main_city_warehouse_capacity = 100000;
$main_city_total_amount = 20000;
$transfer_amount = 10000;
if ($transfer_amount > $second_city_warehouse_capacity) {
$transfer_amount = $second_city_warehouse_capacity - $second_city_total_amount;
print "Sorry, your second city's warehouse can only
hold $second_city_warehouse_capacity of each resource. Transferring
$transfer_amount to your second city warehouse.\n";
$second_city_total_amount = $second_city_total_amount + $transfer_amount;
$main_city_total_amount = $main_city_total_amount - $transfer_amount;
}
In the end, $main_city_total_amount would be 19,500 and
$second_city_total_amount would be 1000;
I would ask you to please submit this to the developers as a bug and fix it.
Thanks
----------
Am I wrong to be upset?