Refactor arena modes and add objective event feed
This commit is contained in:
1 parent
df6ab8efe1
commit
b87a3770a1
26 files changed
+1221
-654
No files matched your search
@@ -0,0 +1,13 @@
|
||||
--!strict
|
||||
return function(hints: any)
|
||||
local s = hints.new()
|
||||
local low = {key = "low", text = "Подсказка", priority = 1, ttl = .4}
|
||||
local high = {key = "high", text = "Приоритет", priority = 2, ttl = 1, cooldown = 3}
|
||||
assert(hints.pick(s, {low}, 0) == low)
|
||||
assert(hints.pick(s, {low}, .25) == low)
|
||||
assert(hints.pick(s, {high, low}, .5) == high)
|
||||
assert(hints.pick(s, {low}, .6) == high)
|
||||
assert(hints.pick(s, {}, 1.5) == nil)
|
||||
assert(hints.pick(s, {high}, 2) == nil)
|
||||
assert(hints.pick(s, {high}, 3.5) == high)
|
||||
end
|
||||
Reference in new issue
Block a user