vache / BuildingEditor

New version of cataclysm building editor
2 stars 1 forks source link

Flags and Valid Placement Calculations #14

Open vache opened 9 years ago

vache commented 9 years ago

https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/JSON_FLAGS.md

Terrain, Furniture, & Traps

Items:

Monsters & NPCs:

Vehicles:

Fields:

Other flags we need to know:

vache commented 9 years ago

Terrains are always placeable. If one is placed in a square with other incompatible features, the terrain should trump the other features and they should be reset to their null value. Order of preference should go terrain > furniture > trap > monster & monster groups > item & item groups > everything else. If something with higher preference is placed somewhere it is incompatible with something of lower preference, the higher one will get placed and overwrite the rest, otherwise the placement is not allowed.

vache commented 9 years ago

Gas Pumps (the specials) are terrain.

Signs, toilets, and vending machines are all furniture.

Placing one of the above should change the terrain/furniture to match, if placement is valid.