Luck of the Little Folk

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Luck of the Little Folk

#1 Post by greycat »

Code: Select all

-- Hobbit's power, temporary crit bonus
newTalent{
        short_name = "HOBBIT_LUCK",
        name = "Luck of the Little Folk",
        type = {"base/race", 1},
        cooldown = 50,
        action = function(self, t)
                self:setEffect(self.EFF_HOBBIT_LUCK, 5, {
                        physical=10 + self:getCun() / 2,
                        spell=10 + self:getCun() / 2,
                })
                return true
        end,
        info = function(self)
                return ([[Call upon the luck and cunning of the Little Folk to increase your physical and spell critical strike chance by %d%% for 5 turns.
                The bonus will increase with the Cunning stat]]):format(10 + self:getCon() / 5, 10 + self:getCon() / 5)
        end,
}
I ran across this while I was looking for spelling errors and stuff, and it looked wrong, but I left it alone. So anyway, I looked at it again, and I still think it's wrong, so here's a bug report: shouldn't the two self:getCon() in the description be self:getCun() instead? And should the /5s be /2s? (I also don't understand why there are two things with a comma between them and only one %d in the thing before that, but I don't know Lua, so that might be normal for all I know.)

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Luck of the Little Folk

#2 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply