Open betovar opened 11 years ago
Settlements are built on a hex if the distance between settlement and hex is less equal to the radius or characteristic edge length plus some small epsilon.
Since the server tracks all cards, a player with a resource payout receives the cards to the hand object on the server. then the server re-emits each player's hand object on their own socket.
This is the second part of the roll-the-dice stage.
When a number is rolled, the server looks for settlements on the hexes (max 2 hexes). If a settlement or city is built on a node, the server will return the calculated resource payouts to the owner.