xaya / taurion_gsp

Taurion - A Fully Decentralised MMO built for the Xaya Platform.
https://taurion.io
GNU General Public License v3.0
23 stars 10 forks source link

Faction restrictions for items #189

Closed domob1812 closed 3 years ago

domob1812 commented 3 years ago

This implements #118: Buildings and vehicles get assigned an "implicit faction" from their name (e.g. r vb is Jodon, gv st is Ephrati). Some of the fitments (as defined in the game-design sheet) also are faction-specific with an explicit roconfig definition.

These factions are then used to implement some restrictions. In particular, founding buildings, constructing items and getting blueprints through reverse engineering are now limited to players of a matching faction. And fitments with a defined faction can only be placed on vehicles of the same faction.

domob1812 commented 3 years ago

This should be taken into account in the frontend, so that no invalid moves are created (e.g. for construction of mismatched item types or buildings, and for fitting out a vehicle).