# This is describes the dependencies for the Elven Bungalow (ABc1).
# As for the Temple to Fervus in example 1, the second and third
# level palace must exist. Next, the Marketplace 1st and 2nd levels
# are checked for (ABH1, ABH2), and the result of that ORed with
# the 3rd level of the marketplace (ABH3). Then, the Inn's (ABF1)
# existance is ANDed with the result of the marketplaces's ORs.
# Finally, this result is ANDed with the original OR between the
# palaces, for our intended result:
#
# "Elven Bungalow requires lvl 2 palace or up and marketplace and inn"
#
#
# ------------------------- Building list follows -------------------------
#
# Ballista tower requires Dwarven settlement
ABB1 : ABb1
#
# Blacksmith 1
ABC1
#
# Blacksmith 2
ABC2
#
# Blacksmith 3
ABC3
#
# Fairgrounds requires lvl 3 palace
ABD1 : ABJ3
#
# Guardhouse
ABE1
#
# Inn
ABF1
#
# Library requires wizard's guild
ABG1 : ABY1 ABY2 || ABY3 ||
#
# Marketplace 1 : requires a palace
ABH1 : ABJ1 ABJ2 NOT NOT ABJ3 NOT NOT || ||
#
# Marketplace 2 requires lvl 2 palace or up
ABH2 : ABJ1 ABJ2 NOT NOT ABJ3 NOT NOT || ||
#
# Marketplace 3 requires lvl 3 palace or up
ABH3 : ABJ1 ABJ2 NOT NOT ABJ3 NOT NOT || ||
#
# Palace 1
ABJ1
#
# Palace 2
ABJ2
#
# Palace 3
ABJ3
#
# Trading Post requires Marketplace
ABL1 : ABH1 ABH2 || ABH3 ||
#
# Wizards Tower requires Wizards Guild
ABM1 : ABY1 ABY2 NOT NOT || ABY3 NOT NOT ||
#
# Sewers
ABN1
#
# Temple to Agrela requires no fervus, no krypta, no krolm
ABO1 : ABQ1 NOT ABQ2 NOT && ABQ3 NOT && ABT1 NOT ABT2 NOT && ABT3 NOT && && ABS1 NOT && ABJ2 ABJ3 NOT NOT || &&
#
# Temple to Agrela 2
ABO2
#
# Temple to Agrela 3
ABO3
#
# Temple to Dauros requires lvl 2 palace or up, no fervus, no krypta, no krolm
# note: the ABJ3 NOT NOT means exists, ignoring if it is completed
ABP1 : ABJ2 ABJ3 NOT NOT || ABQ1 NOT ABQ2 NOT && ABQ3 NOT && ABT1 NOT ABT2 NOT && ABT3 NOT && && ABS1 NOT && &&
#
# Temple to Dauros 2
ABP2
#
# Temple to Dauros 3
ABP3
#
# Temple to Fervus requires lvl 2 palace or up, no agrela, no dauros, no krolm
ABQ1 : ABJ2 ABJ3 NOT NOT || ABO1 NOT ABO2 NOT && ABO3 NOT && && ABP1 NOT ABP2 NOT && ABP3 NOT && && ABS1 NOT &&
#
# Temple to Fervus 2
ABQ2
#
# Temple to Fervus 3
ABQ3
#
# Temple to Helia requires lvl 3 palace, no lunord, no Krolm
ABR1 : ABJ3 ABU1 NOT ABU2 NOT && && ABS1 NOT &&
#
# Temple to Helia 2
ABR2
#
# Temple to Krolm reuires no other temples to be present
ABS1 : ABO1 NOT ABO2 NOT ABO3 NOT && && ABP1 NOT ABP2 NOT ABP3 NOT && && && ABQ1 NOT ABQ2 NOT ABQ3 NOT && && && ABR1 NOT ABR2 NOT && && ABT1 NOT ABT2 NOT ABT3 NOT && && && ABU1 NOT ABU2 NOT && && ABJ2 ABJ3 NOT NOT || &&
#
# Temple to Krypta can't be present with any agrela, any dauros or Krolm
ABT1 : ABO1 NOT ABO2 NOT && ABO3 NOT && ABP1 NOT ABP2 NOT && ABP3 NOT && && ABS1 NOT && ABJ2 ABJ3 NOT NOT || &&
#
# Temple to Krypta 2
ABT2
#
# Temple to Krypta 3
ABT3
#
# Temple to Lunord requires lvl 3 palace, no Helia, no Krolm
ABU1 : ABJ3 ABR1 NOT ABR2 NOT && && ABS1 NOT &&
#
# Temple to Lunord 2
ABU2
#
# Warriors Guild
ABV1
#
# Rangers Guild
ABW1
#
# Rogues Guild
ABX1
#
# Rogues Guild 2
ABX2
#
# Wizards Guild // lvl 2 palace and up
ABY1 : ABJ2 ABJ3 NOT NOT ||
#
# Wizards Guild 2
ABY2
#
# Wizards Guild 3
ABY3
#
# Brothel
ABa1
#
# Dwarven Settlement requires Palace lvl 2 or up and lvl 3 blacksmith and no elves or gnomes
ABb1 : ABJ2 ABJ3 NOT NOT || ABC3 && ABc1 NOT && ABf1 NOT &&
#
# Elven Bungalow requires lvl 2 palace or up and marketplace and inn, and no dwarves or gnomes
ABc1 : ABJ2 ABJ3 NOT NOT || ABH1 ABH2 NOT NOT || ABH3 NOT NOT || ABF1 && && ABb1 NOT && ABf1 NOT &&
#
# Gambling Hall
ABd1
#
# General Housing
ABe1
#
# Gnome Hovel requires palace level 1, no elves, no dwarves, no Gnomes