コード例 #1
0
ファイル: TempleRuins.java プロジェクト: RC08/zeldarl
  {
    charMap.put("#", "RUINSWALL");
    charMap.put(".", "RUINSFLOOR");
    charMap.put("=", "REDCARPET");
    charMap.put("/", "DUNGEON_DOOR");
    charMap.put("W", "WATER");
    charMap.put("B", "STATUE");
    charMap.put("P", "RUINEDPILLAR");
    charMap.put(">", "STAIRSDOWN");
    charMap.put("<", "STAIRSUP");
    charMap.put("!", "RUINSFLOOR PRIZE POTION");

    charMap.put("S", "REDCARPET EXIT _START");
    charMap.put("O", "REDCARPET EXIT OVERWORLD");
    if (Util.chance(50)) charMap.put("D", "RUINSFLOOR MONSTER GOLEM_GUARD");
    else charMap.put("D", "RUINSFLOOR MONSTER ARMOS_KNIGHT");

    charMap.put("$", "DUNGEON_DOOR FEATURE LOCKED_DOOR");
    charMap.put("%", "DUNGEON_DOOR FEATURE BOSS_DOOR");
    charMap.put("&", "DUNGEON_DOOR FEATURE TREASURE_DOOR");

    charMap.put("k", "RUINSFLOOR FEATURE SMALL_KEY");
    charMap.put("K", "REDCARPET FEATURE BIG_KEY");
    charMap.put("H", "REDCARPET FEATURE HEARTCONTAINER");
    charMap.put(")", "REDCARPET ITEM BOW");
    charMap.put("C", "RUINSFLOOR FEATURE COMPASS");
    charMap.put("c", "RUINSFLOOR FEATURE CANE_BYRNA");
  }
コード例 #2
0
ファイル: TempleRuins.java プロジェクト: RC08/zeldarl
  {
    obstacles.add("D_LOCKEDROOM");
    obstacles.add("D_LOCKEDROOM");
    obstacles.add("BOWROOM");

    prizes.add("KEYROOM");
    prizes.add("KEYROOM");
    prizes.add("EMPTYROOM");

    fills.add("COMPASSROOM");
    int empties = Util.rand(9, 11);
    for (int i = 0; i < empties; i++) {
      fills.add("EMPTYROOM");
    }
    int potions = Util.rand(2, 3);
    for (int i = 0; i < potions; i++) {
      fills.add("POTIONROOM");
    }
  }