Skip to content
Snippets Groups Projects
Commit c6ffc58a authored by dg's avatar dg
Browse files

Painted lore for master death

git-svn-id: http://svn.net-core.org/repos/t-engine4@4216 51575b47-30f0-44d4-a5cc-537603b46e54
parent 07aa9744
No related branches found
No related tags found
No related merge requests found
......@@ -1455,7 +1455,7 @@ function _M:createRandomBoss(base, data)
-- Select two classes
local classes = Birther.birth_descriptor_def.subclass
local list = {}
local force_classes = table.clone(data.force_classes)
local force_classes = data.force_classes and table.clone(data.force_classes)
for name, cdata in pairs(classes) do
if force_classes and force_classes[cdata.name] then apply_class(table.clone(cdata, true)) force_classes[cdata.name] = nil
elseif not cdata.not_on_random_boss then list[#list+1] = cdata
......
game/modules/tome/data/gfx/lore/the_master_slain.png

345 KiB

......@@ -121,3 +121,11 @@ newLore{
name = "a note about undead poetry from the Master",
lore = [[As an aside, I notice one of my skeletons has amused himself by writing a poem about me. Whilst my first reaction was to have his bones crunched into dust and what remained of his undead soul sent to the darkest depths of the abyss, I do now realise that there is some merit to this. Every great leader needs tales penned of his brilliant conquest. Therefore I now command you all to write more poetry in my honour, praising my amazing powers, unrivalled leadership, unconquerable strength, etc etc. Any that fail to produce works of sufficient standard shall be annihilated.]],
}
newLore{
id = "master-slain",
category = "dreadfell",
name = "slain master", always_pop = true,
image = "the_master_slain.png",
lore = [[A powerful staff is grabbed from the Master's dead hands.]],
}
......@@ -42,6 +42,7 @@ desc = function(self, who)
end
on_grant = function(self, who)
who:learnLore("master-slain")
game.logPlayer(who, "#00FFFF#You can feel the power of this staff just by carrying it. This is both ancient and dangerous.")
game.logPlayer(who, "#00FFFF#It should be shown to the wise elders in Last Hope!")
end
......
......@@ -264,6 +264,10 @@ function _M:randomBirth()
})
self.c_name:setText(namegen:generate())
self.descriptors_by_type.race = nil
self.descriptors_by_type.subrace = nil
self.descriptors_by_type.class = nil
self.descriptors_by_type.subclass = nil
--[[
-- Random campaign
local camp, camp_id = nil
......@@ -300,7 +304,7 @@ function _M:randomBirth()
-- Random subclass
if class then
local subclass, subclass_id = nil
repeat subclass, subclass_id = rng.table(self.all_classes[class_id].nodes) print("====", subclass, subclass_id, class_id)
repeat subclass, subclass_id = rng.table(self.all_classes[class_id].nodes)
until not subclass.locked
self:classUse(subclass)
end
......
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