[1.0.4] Unlearning pool talents

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Emaster
Cornac
Posts: 35
Joined: Tue Feb 05, 2013 1:48 pm

[1.0.4] Unlearning pool talents

#1 Post by Emaster »

Bug: If a player unlearns all talents that use a pool he will keep the talent pool

Example: Create an adventurer, learn 1 talent (an spell, or anything), unlearn it and the pool will stay.

Problem:

In actor.lua: http://git.develz.org/?p=tome.git;a=blo ... .lua#l3227
-- Check the various pools
3227 for key, num_refs in pairs(self.resource_pool_refs) do
3228 if num_refs == 0 then
3229 self:unlearnTalent(key)
3230 end
3231 end

It will remove the pool when num_refs is 0, but even unlearning the last talent that uses a resource "self_pool_refs" stays at 1.

This is not an important, except when an item grants a talent which uses a resource (wand of strike, volcano, void blast) is worn because after removing the equipment the pool will stay (and this means player can be manaclashed!), specially when a player wants to go antimagic but managed to get one of these wands before.

BoomFrog
Halfling
Posts: 84
Joined: Tue Apr 30, 2013 6:19 am

Re: [1.0.4] Unlearning pool talents

#2 Post by BoomFrog »

It would be nice if only for aesthetics. Might make some weird situations where you see an oozing horror and unequip your wand, but that seems fine.

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

Re: [1.0.4] Unlearning pool talents

#3 Post by darkgod »

fixed
[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