Should use same data

This commit is contained in:
Ukendio 2024-05-03 00:21:30 +02:00
parent 06a03d4fab
commit bda8b2df47

View file

@ -64,37 +64,37 @@ do TITLE (testkit.color.white_underline("Jecs query"))
if flip() then if flip() then
combination ..= "B" combination ..= "B"
ecs:set(entity, D2, true) ecs:set(entity, D2, {value = true})
end end
if flip() then if flip() then
combination ..= "C" combination ..= "C"
ecs:set(entity, D3, true) ecs:set(entity, D3, { value = true })
end end
if flip() then if flip() then
combination ..= "D" combination ..= "D"
ecs:set(entity, D4, true) ecs:set(entity, D4, { value = true})
end end
if flip() then if flip() then
combination ..= "E" combination ..= "E"
ecs:set(entity, D5, true) ecs:set(entity, D5, { value = true})
end end
if flip() then if flip() then
combination ..= "F" combination ..= "F"
ecs:set(entity, D6, true) ecs:set(entity, D6, {value = true})
end end
if flip() then if flip() then
combination ..= "G" combination ..= "G"
ecs:set(entity, D7, true) ecs:set(entity, D7, { value = true})
end end
if flip() then if flip() then
combination ..= "H" combination ..= "H"
ecs:set(entity, D8, true) ecs:set(entity, D8, {value = true})
end end
if #combination == 7 then if #combination == 7 then
added += 1 added += 1
ecs:set(entity, D1, true) ecs:set(entity, D1, { value = true})
end end
archetypes[combination] = true archetypes[combination] = true
end end