Skip to content
Snippets Groups Projects
Commit 1e7eed86 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

I just can't get it right, can I. *sigh* At least now it should work, and I...

I just can't get it right, can I. *sigh* At least now it should work, and I also fixed a couple of typos.
parent 373db91b
No related branches found
No related tags found
No related merge requests found
......@@ -1293,9 +1293,10 @@ function _M:move(x, y, force)
end
-- knowing Unnatural Body allows you to get the Cursed Aura tree
if moved and self:knowTalent(self.T_UNNATURAL_BODY) and not self:knowTalentType("cursed/cursed-aura") then
if moved and self:knowTalent(self.T_UNNATURAL_BODY) and not self:knowTalentType("cursed/cursed-aura") and self.chooseCursedAuraTree then
if self.player then
-- function placed in defiling touch where cursing logic exists
self.chooseCursedAuraTree = nil
local t = self:getTalentFromId(self.T_DEFILING_TOUCH)
t.chooseCursedAuraTree(self, t)
end
......
......@@ -105,5 +105,6 @@ newBirthDescriptor{
{type="weapon", subtype="sling", name="rough leather sling", autoreq=true, ego_chance=-1000},
{type="ammo", subtype="shot", name="pouch of iron shots", autoreq=true, ego_chance=-1000},
},
chooseCursedAuraTree = true,
},
}
......@@ -93,6 +93,7 @@ newBirthDescriptor{
{type="weapon", subtype="battleaxe", name="iron battleaxe", autoreq=true, ego_chance=-1000},
{type="armor", subtype="heavy", name="iron mail armour", autoreq=true, ego_chance=-1000, ego_chance=-1000}
},
chooseCursedAuraTree = true
},
copy_add = {
life_rating = 2,
......@@ -145,6 +146,7 @@ newBirthDescriptor{
{type="weapon", subtype="mindstar", name="mossy mindstar", autoreq=true, ego_chance=-1000},
{type="armor", subtype="cloth", name="linen robe", autoreq=true, ego_chance=-1000},
},
chooseCursedAuraTree = true
},
copy_add = {
},
......
......@@ -162,15 +162,14 @@ newTalent{
if choose then
Dialog:yesnoLongPopup(
"Cursed Fate",
("The %s lying nearby catches your attention. What draws you to it is not the thing itself, but something burning inside you. You feel contempt for it and all worldly things. This feeling is not new but the power of it overwhelms you. You reach out to touch the object, to curse it, to defile it. And you notice it begin to change. The colors of it begin to fade and are replaced with an insatiable hate. For a moment you hesistate. You know you must choose to resist this manifestation of your curse now and forever, or fall further into your madness."):format(item.name),
("The %s lying nearby catches your attention. What draws you to it is not the thing itself, but something burning inside you. You feel contempt for it and all worldly things. This feeling is not new but the power of it overwhelms you. You reach out to touch the object, to curse it, to defile it. And you notice it begin to change. The colors of it begin to fade and are replaced with an insatiable hate. For a moment you hesitate. You know you must choose to resist this manifestation of your curse now and forever, or fall further into your madness."):format(item.name),
300,
function(ret)
if ret then
Dialog:simpleLongPopup("Cursed Fate", (" The %s lies defiled at your feet. An aura of hatred surrounds you and you now feel truly cursed. You have gained the Cursed Aura talent tree and 1 point in Defiling Touch, but at the cost of 2 Willpower."):format(item.name), 300)
Dialog:simpleLongPopup("Cursed Fate", ("The %s lies defiled at your feet. An aura of hatred surrounds you and you now feel truly cursed. You have gained the Cursed Aura talent tree and 1 point in Defiling Touch, but at the cost of 2 Willpower."):format(item.name), 300)
self:learnTalentType("cursed/cursed-aura", true)
self:learnTalent(self.T_DEFILING_TOUCH, true, 1, {no_unlearn=true})
self.inc_stats[self.STAT_WIL] = self.inc_stats[self.STAT_WIL] - 2
self:onStatChange(self.STAT_WIL, -2)
self:incIncStat(Stats.STAT_WIL, -2)
t.curseItem(self, t, item)
t.curseInventory(self, t)
t.curseFloor(self, t, self.x, self.y)
......
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