Skip to content
Snippets Groups Projects
Commit 6b027e4c authored by Lisa Greene's avatar Lisa Greene Committed by Otowa Kotori
Browse files

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

parent b0d793d6
No related branches found
No related tags found
2 merge requests!627I18n,!617WIP: experienmental i18n support
......@@ -120,7 +120,7 @@ defineTile('W', "FLOOR", nil,
end,
random_filter={special_rarity="wyrm_rarity",
add_levels=10,
random_boss={name_scheme=_t"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}
random_boss={name_scheme=_t"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}
}
}
)
......@@ -135,7 +135,7 @@ defineTile('D', "FLOOR", nil,
return e
end,
random_filter={special_rarity="drake_rarity",
random_boss={name_scheme=_t"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}
random_boss={name_scheme=_t"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}
}
}
)
......
......@@ -28,8 +28,8 @@ self:defineTile('"', "HARDWALL")
self:defineTile('t', "TRAINING_DUMMY")
self:defineTile('b', "FLOOR", nil, "ORC_ELITE_BERSERKER")
self:defineTile('f', "FLOOR", nil, "ORC_ELITE_FIGHTER")
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}}})
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}}})
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}}})
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}}})
self:defineTile('>', "SLIME_TUNNELS", nil, nil, nil, {special="slimepit"})
self:defineTile(";", "UNDERGROUND_CREEP", nil, nil, nil, {special="slimepit"})
self:defineTile("s", "UNDERGROUND_CREEP", nil, {random_filter={special_rarity="slime_rarity"}}, nil, {special="slimepit"})
......
......@@ -23,8 +23,8 @@ self:defineTile('"', "HARDWALL")
self:defineTile('t', "TRAINING_DUMMY")
self:defineTile('b', "FLOOR", nil, "ORC_ELITE_BERSERKER")
self:defineTile('f', "FLOOR", nil, "ORC_ELITE_FIGHTER")
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}}})
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}}})
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}}})
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}}})
-- Make the barracks
local bsp = BSP.new(5, 5, 6):make(30, 30, '.', '#')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment