• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling GainSoulAmount in vocations.xml TFS 1.2

Cornwallis

Member
Joined
Jan 3, 2010
Messages
480
Reaction score
16
I'm trying to add a gainsoulamount for each vocation in vocations.xml, similar to gainhealthamount. There is already a gainsoulticks. I've been searching through vocations.cpp and vocations.h and i couldn't find where gainhealthamount is defined because i was just going to use that as a template of a sort to create gainsoulamount. Can someone point me in the right direction? There is already an addhealth and there is an addsoul so I can't see this being very hard. On a side note, i set gainsoulticks to 1 in vocations.xml and my character doesn't appear to be gaining soul.
 
https://github.com/otland/forgotten...c5c04eb835e96c7b0c49b4/src/vocation.h#L71-L76
Code:
        uint8_t getSoulMax() const {
            return soulMax;
        }
        uint16_t getSoulGainTicks() const {
            return gainSoulTicks;
        }

https://github.com/otland/forgotten...4eb835e96c7b0c49b4/src/vocation.cpp#L101-L107
Code:
        if ((attr = vocationNode.attribute("soulmax"))) {
            voc.soulMax = pugi::cast<uint16_t>(attr.value());
        }

        if ((attr = vocationNode.attribute("gainsoulticks"))) {
            voc.gainSoulTicks = pugi::cast<uint16_t>(attr.value());
        }
 
https://github.com/otland/forgotten...c5c04eb835e96c7b0c49b4/src/vocation.h#L71-L76
Code:
        uint8_t getSoulMax() const {
            return soulMax;
        }
        uint16_t getSoulGainTicks() const {
            return gainSoulTicks;
        }

https://github.com/otland/forgotten...4eb835e96c7b0c49b4/src/vocation.cpp#L101-L107
Code:
        if ((attr = vocationNode.attribute("soulmax"))) {
            voc.soulMax = pugi::cast<uint16_t>(attr.value());
        }

        if ((attr = vocationNode.attribute("gainsoulticks"))) {
            voc.gainSoulTicks = pugi::cast<uint16_t>(attr.value());
        }
Ur profile picture scary as fuck @Sharkot
 
Back
Top