EquipDoll: Only show slots up to actor's max.

Moderator: Moderator

Post Reply
Message
Author
grayswandir
Uruivellas
Posts: 708
Joined: Wed Apr 30, 2008 5:55 pm

EquipDoll: Only show slots up to actor's max.

#1 Post 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
Addons: Arcane Blade Tweaks, Fallen Race, Monk Class, Weapons Pack
Currently working on Elementals. It's a big project, so any help would be appreciated. :)

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

Re: EquipDoll: Only show slots up to actor's max.

#2 Post by darkgod »

I'm not sure what you mean by the doll having more ?
[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 ;)

grayswandir
Uruivellas
Posts: 708
Joined: Wed Apr 30, 2008 5:55 pm

Re: EquipDoll: Only show slots up to actor's max.

#3 Post 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.
Addons: Arcane Blade Tweaks, Fallen Race, Monk Class, Weapons Pack
Currently working on Elementals. It's a big project, so any help would be appreciated. :)

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

Re: EquipDoll: Only show slots up to actor's max.

#4 Post by darkgod »

Ahhh!
Done
[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