Commit 189cd8d420788d51c53dd6fa8cd475755407f2be

Authored by Lisa Greene
1 parent 81d5ade2

Prevent randbosses with a fixed class from rolling that class a second time

... ... @@ -120,7 +120,7 @@ defineTile('W', "FLOOR", nil,
120 120 end,
121 121 random_filter={special_rarity="wyrm_rarity",
122 122 add_levels=10,
123   - random_boss={name_scheme="Sleeping #rng#", force_classes={Wyrmic=true}, class_filter=function(d) return d.power_source and ((d.power_source.nature or d.power_source.technique) and not d.power_source.arcane) end, loot_quality="store", loot_quantity=1, rank=3.5}
  123 + random_boss={name_scheme="Sleeping #rng#", force_classes={Wyrmic=true}, class_filter=function(d) return d.power_source and ((d.power_source.nature or d.power_source.technique) and not d.power_source.arcane) and d.name ~= "Wyrmic" end, loot_quality="store", loot_quantity=1, rank=3.5}
124 124 }
125 125 }
126 126 )
... ... @@ -135,7 +135,7 @@ defineTile('D', "FLOOR", nil,
135 135 return e
136 136 end,
137 137 random_filter={special_rarity="drake_rarity",
138   - random_boss={name_scheme="Dozing #rng#", force_classes={Wyrmic=true}, class_filter=function(d) return d.power_source and ((d.power_source.nature or d.power_source.technique) and not d.power_source.arcane) end, nb_classes=1, loot_quality="store", loot_quantity=1, rank=3.5}
  138 + random_boss={name_scheme="Dozing #rng#", force_classes={Wyrmic=true}, class_filter=function(d) return d.power_source and ((d.power_source.nature or d.power_source.technique) and not d.power_source.arcane) and d.name ~= "Wyrmic" end, nb_classes=1, loot_quality="store", loot_quantity=1, rank=3.5}
139 139 }
140 140 }
141 141 )
... ...
... ... @@ -28,8 +28,8 @@ self:defineTile('"', "HARDWALL")
28 28 self:defineTile('t', "TRAINING_DUMMY")
29 29 self:defineTile('b', "FLOOR", nil, "ORC_ELITE_BERSERKER")
30 30 self:defineTile('f', "FLOOR", nil, "ORC_ELITE_FIGHTER")
31   -self:defineTile("B", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_BERSERKER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Berserker=true}, nb_classes=1, loot_quality="store", loot_quantity=1, rank=3.5}}})
32   -self:defineTile("F", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_FIGHTER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Bulwark=true}, nb_classes=1, loot_quality="store", loot_quantity=1, loot_unique=true, no_loot_randart=true, rank=3.5}}})
  31 +self:defineTile("B", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_BERSERKER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Berserker=true}, nb_classes=1, class_filter=function(d) return d.name ~= "Berserker" end, loot_quality="store", loot_quantity=1, rank=3.5}}})
  32 +self:defineTile("F", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_FIGHTER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Bulwark=true}, nb_classes=1, class_filter=function(d) return d.name ~= "Bulwark" end, loot_quality="store", loot_quantity=1, loot_unique=true, no_loot_randart=true, rank=3.5}}})
33 33 self:defineTile('>', "SLIME_TUNNELS", nil, nil, nil, {special="slimepit"})
34 34 self:defineTile(";", "UNDERGROUND_CREEP", nil, nil, nil, {special="slimepit"})
35 35 self:defineTile("s", "UNDERGROUND_CREEP", nil, {random_filter={special_rarity="slime_rarity"}}, nil, {special="slimepit"})
... ...
... ... @@ -23,8 +23,8 @@ self:defineTile('"', "HARDWALL")
23 23 self:defineTile('t', "TRAINING_DUMMY")
24 24 self:defineTile('b', "FLOOR", nil, "ORC_ELITE_BERSERKER")
25 25 self:defineTile('f', "FLOOR", nil, "ORC_ELITE_FIGHTER")
26   -self:defineTile("B", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_BERSERKER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Berserker=true}, nb_classes=1, loot_quality="store", loot_quantity=1, rank=3.5}}})
27   -self:defineTile("F", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_FIGHTER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Bulwark=true}, nb_classes=1, loot_quality="store", loot_quantity=1, loot_unique=true, no_loot_randart=true, rank=3.5}}})
  26 +self:defineTile("B", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_BERSERKER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Berserker=true}, nb_classes=1, class_filter=function(d) return d.name ~= "Berserker" end, loot_quality="store", loot_quantity=1, rank=3.5}}})
  27 +self:defineTile("F", "FLOOR", nil, {random_filter={define_as="ORC_ELITE_FIGHTER", random_boss={name_scheme="Combat Trainer #rng#", force_classes={Bulwark=true}, nb_classes=1, class_filter=function(d) return d.name ~= "Bulwark" end, loot_quality="store", loot_quantity=1, loot_unique=true, no_loot_randart=true, rank=3.5}}})
28 28
29 29 -- Make the barracks
30 30 local bsp = BSP.new(5, 5, 6):make(30, 30, '.', '#')
... ...