Page 1 of 1
EquipDoll: Only show slots up to actor's max.
Posted: Thu Jun 26, 2014 11:40 pm
by grayswandir
The equip doll should only show equip slots up to the actor's max, instead of all of them. Right now, if an equip slot has 3 spaces on the doll, but the actor only has a max of 2 spaces in that inventory slot, all 3 equip slots will still show up. I don't think this should happen.
I implemented this for my one addon. Just stick this in at engine/ui/EquipDoll.lua:125
Code: Select all
if item > inven.max then break end
Re: EquipDoll: Only show slots up to actor's max.
Posted: Mon Jun 30, 2014 9:22 pm
by darkgod
I'm not sure what you mean by the doll having more ?
Re: EquipDoll: Only show slots up to actor's max.
Posted: Fri Jul 04, 2014 12:59 am
by grayswandir
Er, for my one addon, I added a talent tree that let you have more tool slots. So I made the tool slot have 4 slots on the equip doll (just like rings have 2):
Code: Select all
local doll = ActorInventory.equipdolls.default.list.TOOL
table.insert(doll, {weight = 16, x = 336, y = 408,})
table.insert(doll, {weight = 17, x = 336, y = 336,})
table.insert(doll, {weight = 18, x = 336, y = 264,})
Then, I have the talent tree alter how many slots you can have based on points invested, etc.:
Code: Select all
self.inven[self.INVEN_TOOL].max = num_slots
Without the change, the equip doll will always show all of the defined slots, no matter what that slot's
max value is.
Re: EquipDoll: Only show slots up to actor's max.
Posted: Fri Jul 04, 2014 9:33 am
by darkgod
Ahhh!
Done