STR and DEX for summoned War Hound

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

STR and DEX for summoned War Hound

#1 Post by jenx »

The description of the talent for War Hound, with Talent Level 3 and character WIL = 16, indicates that the stats will be STR: 22 and DEX 17. This accords with the calcs in the lua code as far as I can tell. But when they appear, they have STR 29 and DEX 20. This mismatch doesn't occur with Turtles or Ritches (I've yet to check other summons).

Is this a bug, and can it be fixed? Where in the code is the STR and DEX for war hounds modified after the summon-melee.lua code, which as I said, gives 22 and 17 as far as I can tell:

stats = { str=10 + self:getWil() * self:getTalentLevel(t) / 5, dex=10 + self:getTalentLevel(t) * 2, mag=5, con=15 + self:getTalentLevelRaw(self.T_RESILIENCE)*2 },

My talent modifier is the standard 1.3, so the calcs are

str = 10 + 16*(3*1.3)/5 = 22.48
dex = 10 + (3*1.3)*2 = 17.8
MADNESS rocks

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

Re: STR and DEX for summoned War Hound

#2 Post by marvalis »

I dont know what game version you are playing, but you can check the following file for any mistakes:
game/modules/tome/data/talents/gifts/summon-melee.lua file

If you did that, then nevermind :P


this part gives the description (line 85):
info = function(self, t)
return ([[Summon a War Hound for %d turns to attack your foes. War hounds are good basic melee attackers.
It will get %d strength, %d dexterity, 5 magic and %d constitution.
Strength stat will increase with your Willpower stat.]])
:format(math.ceil(self:getTalentLevel(t)) + 5 + self:getTalentLevelRaw(self.T_RESILIENCE),
10 + self:getWil() * self:getTalentLevel(t) / 5,
10 + self:getTalentLevel(t) * 2,
15 + self:getTalentLevelRaw(self.T_RESILIENCE)*2)
this gives the stats (line 57):
local m = NPC.new{
type = "animal", subtype = "canine",
display = "C", color=colors.LIGHT_DARK,
name = "war hound", faction = self.faction,
desc = [[]],
autolevel = "warrior",
ai = "summoned", ai_real = "dumb_talented_simple", ai_state = { talent_in=5, },
stats = { str=10 + self:getWil() * self:getTalentLevel(t) / 5, dex=10 + self:getTalentLevel(t) * 2, mag=5, con=15 + self:getTalentLevelRaw(self.T_RESILIENCE)*2 },

In b20b, I do not see a problem or difference?

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: STR and DEX for summoned War Hound

#3 Post by jenx »

The code you quote is fine. It is that the War Hound ends up with a different actual STR and DEX when it is created, which can be seen by hovering the mouse over it. For the other summoned creatures, the stats created are the same as the description. It is only the war hound that has this difference.
MADNESS rocks

Graziel
Wyrmic
Posts: 234
Joined: Wed Sep 15, 2010 10:32 am

Re: STR and DEX for summoned War Hound

#4 Post by Graziel »

its due to

Code: Select all

autolevel = "warrior",
which means its stats are increased with level using warrior scheme( 2 x STR and 1 x DEX )
rest has

Code: Select all

autolevel = "none"
so its probably a bug
You are likely to be eaten by a grue

Post Reply