Mjmackan
Mapper ~ Writer
Hello!
I've seen this new attribute you can add onto items in the new tfs 1.4 aka: attackspeed.
However its not shown looking on the item, i tried to add it to data/lib/core/item.lua but it warns for nil value, how come?
And what does this do in sources? (item.cpp):
I've seen this new attribute you can add onto items in the new tfs 1.4 aka: attackspeed.
However its not shown looking on the item, i tried to add it to data/lib/core/item.lua but it warns for nil value, how come?
And what does this do in sources? (item.cpp):
C++:
uint32_t attackSpeed = item ? item->getAttackSpeed() : it.attackSpeed;
if (attackSpeed) {
if (begin) {
begin = false;
s << " (";
} else {
s << ", ";
}
s << "Atk Spd:" << (attackSpeed / 1000.) << "s";
}