It requires common strings of names to be set, and sometimes you have to localize the common strings.
Do you think it reasonable and necessary?
----------------------------------- ITEMANY -----------------------------------
local ItemAny = Class('ItemAny', Requirement, {type = L['item']})
function ItemAny:Initialize(name, ...)
self.text, self.ids = name, {...}
end
function ItemAny:IsMet()
local x = false
for i = 1, #self.ids do
x = x or ns.PlayerHasItem(self.ids[i])
end
return x
end
Hi developers, how about adding a requirement that hints requiring any of several items?
There are some examples:
It requires common strings of names to be set, and sometimes you have to localize the common strings. Do you think it reasonable and necessary?