Originally Posted by Mazzop
ok ok, select is big nono, i get it
dont wanna hijack topic, but not even here
instead of sexy and nice
Lua Code:
for j = 1, numbonuses do bonus[j] = select(14 + j, strsplit(":", itemstring)) end
would be better hideous abomination with numerous if depends of numbonuses and 14+ _ ?
|
A few calls here and there is not gonna make a difference. It's fine, and I'd say this is a perfectly reasonable situation in which to use it. That logic might be improved slightly in other ways, though!