• 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!

Feature Spell requirements modificator

sharinn

Active Member
Joined
Aug 27, 2011
Messages
160
Solutions
8
Reaction score
43
GitHub
ArturKnopik
Twitch
krecikondexin
Last edited:
I have tested this on TFS 1.4.2 and seems to be working correctly, with the exception of item description, at least for me...

If you find some problems compiling, there were 2 things that had to be changed to make it work in my case on 1.4.2, that @sharinn helped with, and they are in items.cpp

instead of
C++:
SpellModifier spellMod(spellId);
use
C++:
SpellModifier spellMod;
spellMod.spellId = spellId;

and few lines after that
C++:
tmpStrValue = boost::algorithm::to_lower_copy<std::string>(subKeyAttribute.as_string());
change to
C++:
tmpStrValue = asLowerCaseString(subKeyAttribute.as_string());
love this commit, thanks!
 
Last edited:
Back
Top