Quote:
Originally Posted by Maximus Bukie
I found A new Bug with the Winged Helmet. When you equip the helmet, its supposed to give you 2-3 Vikings after a battle. It actually says that it has given me vikings after my battles (usually 3 Skalds). But It never actually does give them to me. I still have the same number of skalds each time. Please Fix.
|
Yea it seem to have no special code for that:
Code:
addon2_helmet_winged_helmet {
category=o
image=heroitem_addon2_helmet_winged_helmet.png
hint_config=object_item
label=itm_addon2_helmet_winged_helmet_name
hint=itm_addon2_helmet_winged_helmet_hint
information_label=itm_addon2_helmet_winged_helmet_info
maphint=
mapinfo=
price=18000
maxcount=1
level=3
race=viking
setref=set_valkyrie
use {}
mods {
defense=count,2
leadership=count,100
}
propbits=helmet
params {}
}
Is there any other item, which has this "give troops" bonus (and it works), so it could be compared in any way?
EDIT: Another item with a equal function is "itm_addon2_regalia_orc_banner", but it looks the same, no special code for that. So it have to be in some other file (not just items.txt). Otherwise you wouldn't see any message at all.
EDIT2:
The right code can be found in "addon_arena.lua":
Code:
if Logic.hero_lu_item_on_body("addon2_helmet_winged_helmet") then
local data = { --[[Ïðåäìåò Êðûëàòûé Øëåì]]
{n = "slinger_man", minc = 3, maxc = 3, prob = 50},
{n = "viking", minc = 2, maxc = 3, prob = 40},
{n = "skald", minc = 3, maxc = 3, prob = 30}
}
table.insert(tab_verbovka, data)
end
if Logic.hero_lu_item_on_body("addon2_regalia_orc_banner") then
local data = { --[[Ïðåäìåò Çíàìÿ Îðäû]]
{n = "goblin", minc = 3, maxc = 3, prob = 50},
{n = "goblin2", minc = 3, maxc = 3, prob = 50},
{n = "orc", minc = 2, maxc = 3, prob = 40},
{n = "goblin_shaman", minc = 2, maxc = 3, prob = 20},
{n = "catapult", minc = 3, maxc = 3, prob = 20}
}
table.insert(tab_verbovka, data)
end