Skip to content

Commit

Permalink
📈 add booth telemetry for player queue/rejoin events
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Oct 22, 2024
1 parent 5a47daa commit a45d2b6
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "player.rejoin.was_in_bossfight" }

# players who leave the server are removed from the bossfight (when they rejoin)
function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player/modify_health_and_tags
function omegaflowey.main:summit/room/cave/active_player_display/update_value with storage omegaflowey:bossfight
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# if already in queue (or in bossfight somehow), do nothing
execute unless entity @s[tag=!omegaflowey.player.in_queue, tag=!omegaflowey.player.fighting_flowey] run return 0

function omegaflowey.main:telemetry/booth/add_tag { name: "player.queue.join" }

# Play select sound if this was called from the interaction (and not manually)
execute if score #omegaflowey.play_join_queue_select_sound omegaflowey.global.flag matches 1 run \
playsound omega-flowey:soul.touch player @s
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "player.rejoin.was_in_queue" }

# players who leave the server are removed from the queue (when they rejoin)
function omegaflowey.entity:directorial/boss_fight/summit/player/queue/leave_and_rejoin/remove_from_queue_array

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "player.queue.shown_prompt" }

scoreboard players set #omegaflowey.bossfight.has_player_been_prompted omegaflowey.global.flag 1

tag @s add omegaflowey.player.in_queue.prompted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "player.queue.confirm" }

function omegaflowey.entity:directorial/boss_fight/summit/player/queue/prompt_next_player/show_prompt/shared/as_player/triggers
schedule clear omegaflowey.entity:directorial/boss_fight/summit/player/queue/prompt_next_player/show_prompt/timeout

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "player.queue.confirm.after_delay" }

stopsound @s ambient omega-flowey:cutscene.intro.battle_start

function omegaflowey.entity:directorial/boss_fight/summit/player/queue/prompt_next_player/show_prompt/shared/as_player
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "player.queue.deny" }

function omegaflowey.entity:directorial/boss_fight/summit/player/queue/prompt_next_player/show_prompt/shared
function omegaflowey.entity:directorial/boss_fight/summit/player/queue/prompt_next_player/show_prompt/shared/as_player
function omegaflowey.entity:directorial/boss_fight/summit/player/queue/check_should_prompt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "player.queue.timeout" }

function omegaflowey.entity:directorial/boss_fight/summit/player/queue/prompt_next_player/show_prompt/shared/as_player

function omegaflowey.utils:log/self { text_component: '[ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ data modify storage omegaflowey:telemetry schema_booth_n set value { \
"player.interact.feedback_form_link": 10, \
"player.interact.animated_java_link": 11, \
"player.interact.back_cave_github_link": 12, \
'player.queue.join': 13, \
'player.queue.shown_prompt': 14, \
'player.queue.confirm': 15, \
'player.queue.deny': 16, \
'player.queue.timeout': 17, \
'player.queue.confirm.after_delay': 18, \
'player.rejoin.was_in_bossfight': 19, \
'player.rejoin.was_in_queue': 20, \
}

0 comments on commit a45d2b6

Please sign in to comment.