band-aid for #137 replace logic so it fits the new sticky-note code

This commit is contained in:
betalars 2025-05-07 00:28:48 +02:00
parent aa6e1b0e51
commit ecc1d4af9c
1 changed files with 10 additions and 6 deletions

View File

@ -149,13 +149,17 @@ func pick(id: int):
options.remove_at(id)
anim_players.remove_at(id)
var sibling_id = -1
var parent_id = -1
if selection_state == POSTS_SELECTED:
sibling_id = options.find(output.back().sibling)
options.remove_at(sibling_id)
anim_players[sibling_id].play("unshuffle")
anim_players.remove_at(sibling_id)
print("yeet sibling ", sibling_id)
parent_id = options.find(output[-1].parent_id)
var i:int = 0
for option:StickyNote in options:
if option.parent_id == parent_id:
options.erase(options)
anim_players[i].play("unshuffle")
anim_players.remove_at(i)
print("yeet sibling ", i)
i += 1
var winning_id
print(options[1].text)