Difference between revisions of "MediaWiki:ExpansionData.js"

m
Added Label for Snakes And Ladders
m (Updated class)
m (Added Label for Snakes And Ladders)
(18 intermediate revisions by the same user not shown)
Line 583: Line 583:
     selected: false,
     selected: false,
     hidden: false
     hidden: false
  },
  {
    label: "Saint Nicholas Scoring Board",
    inputFieldId: "inputSaintNicholasScoringBoard",
    className: "showSaintNicholasScoringBoard",
    edition: [ "C2" ],
    group: GROUP_MINOR,
    selected: false
   },
   },
   {
   {
Line 696: Line 704:
     inputFieldId: "inputDrawbridges",
     inputFieldId: "inputDrawbridges",
     className: "showDrawbridges",
     className: "showDrawbridges",
    edition: [ "C2" ],
    group: GROUP_MINOR,
    selected: false
  },
  {
    label: "Snakes and Ladders",
    inputFieldId: "inputSnakesAndLadders",
    className: "showSnakesAndLadders",
    edition: [ "C2" ],
    group: GROUP_MINOR,
    selected: false
  },
  {
    label: "The Spring (The 4 Seasons)",
    inputFieldId: "inputSpring",
    className: "showSpring",
     edition: [ "C2" ],
     edition: [ "C2" ],
     group: GROUP_MINOR,
     group: GROUP_MINOR,
Line 797: Line 821:
     NOT = function ( a ) { return !( a ); },
     NOT = function ( a ) { return !( a ); },
     COUNT = function ( a, b ) { return ( +a ) + ( +b ); };
     COUNT = function ( a, b ) { return ( +a ) + ( +b ); };
var OperatorLookup = {
  NOT: NOT,
  OR: OR,
  AND: AND,
  XOR: XOR
};


// Constants for associanted actions
// Constants for associanted actions
Line 872: Line 904:
   },
   },
*/
*/
  {
    className: "showNotBazaars",
    expression: [ NOT, "showBazaars" ]
  },
   {
   {
     className: "showNotFairyAndNotPlague",
     className: "showNotFairyAndNotPlague",
Line 1,785: Line 1,823:
   {
   {
     className: "showOtherTiles",
     className: "showOtherTiles",
     expression: [ OR, "showHalflings", "showDoubleSizedTiles", "showGhostsCastlesAndCemeteries_Any" ]
     expression: [ OR, "showHalflings", "showDoubleSizedTiles", "showGhostsCastlesAndCemeteries_Any", "showWondersOfHumanity" ]
   },
   },
   {
   {
Line 1,797: Line 1,835:
   {
   {
     className: "showRingmasterScoring",
     className: "showRingmasterScoring",
     expression: [ AND, "showRingmaster", [ OR, "showCircus", "showAcrobats" ] ]
     expression: [ AND, "showRingmaster", "showRingmaster" /*[ OR, "showCircus", "showAcrobats" ]*/ ]
   },
   },
   {
   {
Line 1,809: Line 1,847:
   {
   {
     className: "showPigHerd",
     className: "showPigHerd",
     expression: [ OR, "showRiverII", "showRiverII" /*, "showGQ11"*/ ]
     expression: [ OR, "showRiverII" /*, "showGQ11"*/ ]
   },
   },
   {
   {
Line 2,022: Line 2,060:
   {
   {
     className: "showStep1A_Complete",
     className: "showStep1A_Complete",
     expression: [ "showFairy" ]
     expression: [ OR, "showFairy" ]
   },
   },
   {
   {
     className: "showStep1A_Empty",
     className: "showStep1A_Empty",
     expression: [ NOT, "showFairy" ]
     expression: [ NOT, "showStep1A_Complete" ]
   },
   },
   {
   {
Line 2,048: Line 2,086:
   {
   {
     className: "showStep1C_Complete",
     className: "showStep1C_Complete",
     expression: [ OR, "showWindRoses", "show20thAnniversaryExpansion", "showSpielDoch2018" ]
     expression: [ OR, "showWindRoses", "show20thAnniversaryExpansion", "showSpielDoch2018", "showWondersOfHumanity" ]
   },
   },
   {
   {
Line 2,073: Line 2,111:
   {
   {
     className: "showStep2A_Complete",
     className: "showStep2A_Complete",
     expression: [ "showBathhouses" ]
     expression: [ OR, "showBathhouses" ]
   },
   },
   {
   {
     className: "showStep2A_Empty",
     className: "showStep2A_Empty",
     expression: [ NOT, "showBathhouses" ]
     expression: [ NOT, "showStep2A_Complete" ]
   },
   },


Line 2,100: Line 2,138:
   {
   {
     className: "showStep2C_Complete",
     className: "showStep2C_Complete",
     expression: [ OR, "showSheep", "showFruitBearingTrees" ]
     expression: [ OR, "showSheep", "showFruitBearingTrees", "showWondersOfHumanity" ]
   },
   },
   {
   {
     className: "showStep2C_Messages",
     className: "showStep2C_Messages",
     expression: [ AND, "showC1", "showMessages", [ OR, "showStep2A_Complete", "showStep2B-1_Complete", "showSheep", "showFruitBearingTrees" ] ]
     expression: [ AND, "showC1", "showMessages", [ OR, "showStep2A_Complete", "showStep2B-1_Complete", "showSheep", "showFruitBearingTrees", "showWondersOfHumanity" ] ]
   },
   },
   {
   {
Line 2,142: Line 2,180:
   {
   {
     className: "showRoad_EpilogHeaderDuringGame",
     className: "showRoad_EpilogHeaderDuringGame",
     expression: [ OR, "showTeacher", "showMarketsOfLeipzig", "showRingmasterScoring", "showFairy" ]
     expression: [ OR, "showTeacher", "showMarketsOfLeipzig", "showRingmasterScoring", "showFairy", "showCastles", "showRobbers"]
   },
   },
   {
   {
Line 2,160: Line 2,198:
   {
   {
     className: "showCity_EpilogHeaderDuringGame",
     className: "showCity_EpilogHeaderDuringGame",
     expression: [ OR, "showTeacher", "showMarketsOfLeipzig", "showRingmasterScoring", "showFairy" ]
     expression: [ OR, "showTeacher", "showMarketsOfLeipzig", "showRingmasterScoring", "showFairy", "showCastles", "showRobbers"]
   },
   },
   {
   {
Line 2,179: Line 2,217:
   {
   {
     className: "showMonasticBuilding_EpilogHeaderDuringGame",
     className: "showMonasticBuilding_EpilogHeaderDuringGame",
     expression: [ OR, "showTeacher", "showMarketsOfLeipzig", "showRingmasterScoring", "showFairy", "showDarmstadt" ]
     expression: [ OR, "showTeacher", "showMarketsOfLeipzig", "showRingmasterScoring", "showFairy", "showDarmstadt", "showCastles", "showRobbers" ]
   },
   },
   {
   {
Line 2,187: Line 2,225:
   {
   {
     className: "showRingmasterScoring_Extended",
     className: "showRingmasterScoring_Extended",
     expression: [ AND, "showC1", "showC2" ]  // Always false - Hides Ringmaster in non-basic features
     expression: [ OR ]  // Always false - Hides Ringmaster in non-basic features
   },
   },


Line 2,197: Line 2,235:
   {
   {
     className: "showFeature_EpilogHeaderDuringGame",
     className: "showFeature_EpilogHeaderDuringGame",
     expression: [ OR, "showTeacher", "showRingmasterScoring", "showFairy" ] // for field
     expression: [ OR, "showTeacher", "showRingmasterScoring_Extended", "showFairy", "showCastles", "showRobbers" ]  
   },
   },
/*
   {
   {
     className: "showFeature_EpilogHeaderDuringGame_Extended",
     className: "showFeature_EpilogHeaderDuringGame_Extended",
     expression: [ OR, "showTeacher", "showRingmasterScoring_Extended", "showFairy" ]  // For non-basic features (hides Ringmaster)
     expression: [ OR, "showTeacher", "showRingmasterScoring_Extended", "showFairy" ]  // For non-basic features (hides Ringmaster)
   },
   },
*/
   {
   {
     className: "showFeature_NotEpilogHeaderDuringGame",
     className: "showFeature_NotEpilogHeaderDuringGame",
Line 2,229: Line 2,269:
   {
   {
     className: "showStep4A_Complete",
     className: "showStep4A_Complete",
     expression: [ OR, "showCatapult", "showEasterInCarcassonne", "showBazaars", [ AND, "showC2", "showMessages" ] ]
     expression: [ OR, "showCatapult", "showEasterInCarcassonne", "showBazaars", [ AND, "showC2", "showMessages" ], "showSnakesAndLadders" ]
   },
   },
   {
   {
Line 2,235: Line 2,275:
     expression: [ NOT, "showStep4A_Complete" ]
     expression: [ NOT, "showStep4A_Complete" ]
   },
   },


   {
   {
    className: "showPhase4_Empty",
     className: "showNotMonasteries",
    expression: [ AND, "showStep4A_Empty", "showStep4A_Empty" ]
     expression: [ NOT, "showMonasteries" ]
  },
 
  {
    className: "showPhase4_Complete",
    expression: [ NOT, "showPhase4_Empty" ]
  },
 
  {
     className: "showNotMonasteries",
     expression: [ NOT, "showMonasteries" ]
   },
   },


Line 2,281: Line 2,310:
     className: "showCountOfCarcassonneOrShrines",
     className: "showCountOfCarcassonneOrShrines",
     expression: [ OR, "showCountOfCarcassonne", "showShrines" ]
     expression: [ OR, "showCountOfCarcassonne", "showShrines" ]
   },  
   },


  {
    className: "showDoubleSizedTilesRoads",
    expression: [ OR, "showGermanCastles", "showMarketsOfLeipzig" ]
  },


//
// == Consolidated Clarifications ==
//
  // I&C
   {
   {
     className: "showInns_Section",
     className: "showDetermineLengthOfRoad",
     expression: [ NOT, [ NOT, "showInns" ] ]
     expression: [ OR, "showDoubleSizedTilesRoads", "showGermanCathedrals", "showHalflings", "showWondersOfHumanity", "showLandSurveyors" ]
   },
   },
   {
   {
     className: "showBigFollower_Section",
     className: "showNotDetermineLengthOfRoad",  
     expression: [ NOT, [ NOT, "showBigFollower" ] ]
     expression: [ NOT, "showDetermineLengthOfRoad" ]
   },
   },
   {
   {
     className: "showInnsAndCathedrals_Section",
     className: "showDetermineLengthOfRoadFinalScoring",
     expression: [ OR, "showInns_Section", "showBigFollower_Section" ]
     expression: [OR, "showDoubleSizedTilesRoads", "showHalflings", "showWondersOfHumanity" ]
   },
   },
  // T&B
   {
   {
     className: "showNoActionsHappeningOnce",
    className: "showNotDetermineLengthOfRoadFinalScoring",
     expression: [ NOT, [ OR, "showFairy", "showTower", "showTunnel", "showPlague" ] ]
    expression: [ NOT, "showDetermineLengthOfRoadFinalScoring" ]
   },
  },
 
  {
    className: "showDetermineMajorityOnRoad",
    expression: [ OR ]
  },
  {
    className: "showNotDetermineMajorityOnRoad",
    expression: [ NOT, "showDetermineMajorityOnRoad" ]
  },
  {
    className: "showDetermineMajorityOnRoadFinalScoring",
    expression: [ OR ]
  },
  {
    className: "showNotDetermineMajorityOnRoadFinalScoring",
    expression: [ NOT, "showDetermineMajorityOnRoadFinalScoring" ]
  },
 
  {
    className: "showStep3A_Complete",
    expression: [ OR ]
  },
  {
    className: "showStep3A_Empty",
    expression: [ NOT, "showStep3A_Complete" ]
  },
  {
    className: "showStep4B_Complete",
    expression: [ OR ]
  },
  {
    className: "showStep4B_Empty",
    expression: [ NOT, "showStep4B_Complete" ]
  },
 
  {
    className: "showPhase4_Empty",
    expression: [ AND, "showStep4A_Empty", "showStep4B_Empty" ]
  },
 
  {
    className: "showPhase4_Complete",
    expression: [ NOT, "showPhase4_Empty" ]
  },
 
  {
    className: "showStepAnyTimeOnce_Complete",
    expression: [ OR, "showTower" ]
  },
  {
    className: "showStepAnyTimeOnce_Empty",
    expression: [ NOT, "showStepAnyTimeOnce_Complete" ]
  },
  {
    className: "showStepAnyTimeAlways_Complete",
    expression: [ OR ]
  },
  {
    className: "showStepAnyTimeAlways_Empty",
    expression: [ NOT, "showStepAnyTimeAlways_Complete" ]
  },
  {
    className: "showPhaseAnyTime_Empty",
    expression: [ AND, "showStepAnyTimeOnce_Empty", "showStepAnyTimeAlways_Empty" ]
  },
  {
    className: "showPhaseAnyTime_Complete",
    expression: [ NOT, "showPhaseAnyTime_Empty" ]
  },
  {
    className: "showFinalPrologue_Complete",
    expression: [ OR, "showCastles" ],
  },
  {
    className: "showFinalPrologue_Empty",
    expression: [ NOT, "showFinalPrologue_Complete" ]
  },
  {
    className: "showFinalCityOfCarcassonne_Complete",
    expression: [ OR, "showCountOfCarcassonneAndBarn" ],
  }, 
  {
    className: "showFinalCityOfCarcassonne_Empty",
    expression: [ NOT, "showFinalCityOfCarcassonne_Complete" ]
  },
  {
    className: "showFinalFigures_Complete",
    expression: [ OR, "showFairy", "showRingmasterScoring", "showBarn", "showCircus", "showWondersOfHumanity", "showAcrobats","showRobbers"  ]
  },
  {
    className: "showFinalFigures_Empty",
    expression: [ NOT, "showFinalFigures_Complete" ]
  },
 
 
//
// == Consolidated Clarifications ==
//
 
  // I&C
  {
    className: "showInns_Section",
    expression: [ NOT, [ NOT, "showInns" ] ]
  },
  {
    className: "showBigFollower_Section",
    expression: [ NOT, [ NOT, "showBigFollower" ] ]
  },
  {
    className: "showInnsAndCathedrals_Section",
    expression: [ OR, "showInns_Section", "showBigFollower_Section" ]
  },
 
 
  // T&B
  {
     className: "showNoActionsHappeningOnce",
     expression: [ NOT, [ OR, "showFairy", "showTower", "showTunnel", "showPlague" ] ]
   },
 
  {
    className: "showTraders_Section",
    expression: [ AND, "showTraders", "showAbbey" ]
  },
  {
    className: "showBuider_Section",
    expression: [ NOT, [ NOT, "showBuilder" ] ]
  },
  {
    className: "showTradersAndBuilders_Section",
    expression: [ OR, "showTraders_Section", "showBuider_Section" ]
  },
 
  // P&D
 
  {
    className: "showNoFigureOnVolcano",
    expression: [ NOT, [ OR, "showFairy", "showTower", "showBarn", "showBridges", "showAcrobats", "showWheelOfFortune", "showLittleBuildings" ] ]
  },
  {
    className: "showOtherVolcanoActions",
    expression: [ OR, "showSheep", "showAcrobats", "showAbbot", "showFerries", "showRussianPromos", "showPeasantRevolts" ]
  },
 
  {
    className: "showBuilderOrPig",
    expression: [ OR, "showBuilder", "showPig" ]
  },
 
  {
    className: "showSpecialFiguresEatenByDragon_Bullet",
    expression: [ OR, "showPig", "showBuilder", "showSheep" ]
  },
  {
    className: "showNeutralFiguresEatenByDragon_Bullet",
    expression: [ OR, "showMage", "showWitch", "showGingerbreadMan" ]
  },
  {
    className: "showFiguresNotEatenByDragon_Bullet",
    expression: [ OR, "showBarn", "showCastles", "showTeacher" ]
  },
 
  {
    className: "showVolcano_Section",
    expression: [ NOT, [ NOT, "showDragon" ] ]
  },
  {
    className: "showDragon_Section",
    expression: [ NOT, [ NOT, "showDragon" ] ]
  },
   {
   {
     className: "showTraders_Section",
     className: "showPrincess_Section",
     expression: [ AND, "showTraders", "showAbbey" ]
     expression: [ NOT, [ NOT, "showPrincess" ] ]
   },
   },
   {
   {
     className: "showBuider_Section",
     className: "showMagicPortal_Section",
     expression: [ NOT, [ NOT, "showBuilder" ] ]
     expression: [ NOT, [ NOT, "showMagicPortal" ] ]
   },
   },
   {
   {
     className: "showTradersAndBuilders_Section",
     className: "showFairy_Section",
     expression: [ OR, "showTraders_Section", "showBuider_Section" ]
     expression: [ NOT, [ NOT, "showFairy" ] ]
   },
   },
  // P&D
   {
   {
     className: "showNoFigureOnVolcano",
     className: "showNewTiles_Section",
     expression: [ NOT, [ OR, "showFairy", "showTower", "showBarn", "showBridges", "showAcrobats", "showWheelOfFortune", "showLittleBuildings" ] ]
     expression: [ AND, "showPrincessAndDragon_Any", "showTunnel" ]
   },
   },
   {
   {
     className: "showOtherVolcanoActions",
     className: "showPrincessAndDragon_Section",
     expression: [ OR, "showSheep", "showAcrobats", "showAbbot", "showFerries", "showRussianPromos", "showPeasantRevolts" ]
     expression: [ OR, "showVolcano_Section", "showDragon_Section", "showPrincess_Section", "showMagicPortal_Section", "showFairy_Section", "showNewTiles_Section" ]  
   },
   },
  /*
  ===== New classes for fan expansions ====
  */


   {
   {
     className: "showBuilderOrPig",
     className: "showDoubleSizedTilesCities",
     expression: [ OR, "showBuilder", "showPig" ]
     expression: [ OR ]
   },
   },
   {
   {
     className: "showSpecialFiguresEatenByDragon_Bullet",
     className: "showDetermineSizeOfCity",
     expression: [ OR, "showPig", "showBuilder", "showSheep" ]
     expression: [OR, "showDoubleSizedTilesCities", "showHalflings", "showWondersOfHumanity", "showLandSurveyors" ]
   },
   },
   {
   {
     className: "showNeutralFiguresEatenByDragon_Bullet",
     className: "showNotDetermineSizeOfCity",
     expression: [ OR, "showMage", "showWitch", "showGingerbreadMan" ]
     expression: [ NOT, "showDetermineSizeOfCity" ]
   },
   },
   {
   {
     className: "showFiguresNotEatenByDragon_Bullet",
     className: "showDetermineSizeOfCityFinalScoring",
     expression: [ OR, "showBarn", "showCastles", "showTeacher" ]
     expression: [ OR, "showDoubleSizedTilesCities", "showHalflings", "showWondersOfHumanity" ]
   },
   },
   {
   {
     className: "showVolcano_Section",
     className: "showNotDetermineSizeOfCityFinalScoring",
     expression: [ NOT, [ NOT, "showDragon" ] ]
     expression: [ NOT, "showDetermineSizeOfCityFinalScoring" ]
   },
   },
   {
   {
     className: "showDragon_Section",
     className: "showDetermineCoatOfArmsOfCity",
     expression: [ NOT, [ NOT, "showDragon" ] ]
     expression: [ OR ]
   },
   },
   {
   {
     className: "showPrincess_Section",
     className: "showNotDetermineCoatOfArmsOfCity",
     expression: [ NOT, [ NOT, "showPrincess" ] ]
     expression: [ NOT, "showDetermineCoatOfArmsOfCity" ]
   },
   },
   {
   {
     className: "showMagicPortal_Section",
     className: "showDetermineMajorityInCity",
     expression: [ NOT, [ NOT, "showMagicPortal" ] ]
     expression: [ OR, "showMayor", "showLandSurveyors" ]
   },
   },
   {
   {
     className: "showFairy_Section",
     className: "showNotDetermineMajorityInCity",
     expression: [ NOT, [ NOT, "showFairy" ] ]
     expression: [ NOT, "showDetermineMajorityInCity" ]
   },
   },
   {
   {
     className: "showNewTiles_Section",
     className: "showDetermineMajorityInCityFinalScoring",
     expression: [ AND, "showPrincessAndDragon_Any", "showTunnel" ]
     expression: [ OR, "showMayor" ]
   },
   },
   {
   {
     className: "showPrincessAndDragon_Section",
     className: "showNotDetermineMajorityInCityFinalScoring",
     expression: [ OR, "showVolcano_Section", "showDragon_Section", "showPrincess_Section", "showMagicPortal_Section", "showFairy_Section", "showNewTiles_Section"  ]  
     expression: [ NOT, "showDetermineMajorityInCityFinalScoring" ]
   },
   },