ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Tue May 23, 2017 6:54 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Jun 26, 2014 11:40 pm 
Offline
Uruivellas

Joined: Wed Apr 30, 2008 5:55 pm
Posts: 708
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:
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. :)


Top
 Profile  
 
PostPosted: Mon Jun 30, 2014 9:22 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10103
Location: Angolwen
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 ;)


Top
 Profile  
 
PostPosted: Fri Jul 04, 2014 12:59 am 
Offline
Uruivellas

Joined: Wed Apr 30, 2008 5:55 pm
Posts: 708
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:
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:
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. :)


Top
 Profile  
 
PostPosted: Fri Jul 04, 2014 9:33 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10103
Location: Angolwen
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 ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group