Skip to content

Commit

Permalink
📈 add telemetry tags for back cave room
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Oct 23, 2024
1 parent 75cfa39 commit 3f8004d
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
tag @s remove omegaflowey.player.room.is_within.back_cave
tag @s remove omegaflowey.player.room.is_within.back_cave.waterfall_secret

# back_cave
tag @s[x=-157, dx=16, y=36, dy=12, z=18, dz=28] add omegaflowey.player.room.is_within.back_cave

execute if entity @s[tag=!omegaflowey.player.room.back_cave, tag=omegaflowey.player.room.is_within.back_cave] run \
function omegaflowey.entity:player/room/underground/back_cave/enter
execute if entity @s[tag=omegaflowey.player.room.back_cave, tag=!omegaflowey.player.room.is_within.back_cave] run \
function omegaflowey.entity:player/room/underground/back_cave/exit

tag @s remove omegaflowey.player.room.is_within.back_cave.waterfall_secret

# back_cave.waterfall_secret
tag @s[x=-155, dx=7, y=43, dy=5, z=18, dz=8] add omegaflowey.player.room.is_within.back_cave.waterfall_secret

execute if entity @s[tag=!omegaflowey.player.room.back_cave.waterfall_secret, tag=omegaflowey.player.room.is_within.back_cave.waterfall_secret] run \
function omegaflowey.entity:player/room/underground/back_cave/waterfall_secret/enter
execute if entity @s[tag=omegaflowey.player.room.back_cave.waterfall_secret, tag=!omegaflowey.player.room.is_within.back_cave.waterfall_secret] run \
function omegaflowey.entity:player/room/underground/back_cave/waterfall_secret/exit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "room.underground.back_cave.enter" }
tag @s add omegaflowey.player.room.back_cave
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# function omegaflowey.main:telemetry/booth/add_tag { name: "room.underground.back_cave.exit" }
tag @s remove omegaflowey.player.room.back_cave
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function omegaflowey.main:telemetry/booth/add_tag { name: "room.underground.back_cave.waterfall_secret.enter" }
tag @s add omegaflowey.player.room.back_cave.waterfall_secret
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# function omegaflowey.main:telemetry/booth/add_tag { name: "room.underground.back_cave.waterfall_secret.exit" }
tag @s remove omegaflowey.player.room.back_cave.waterfall_secret
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ execute if entity @s[tag=!omegaflowey.player.room.underground] run return 0
execute unless score #omegaflowey.telemetry.enabled omegaflowey.global.flag matches 1 run return 0

# TAG_SUMMIT_HARDCODED_PARKOUR_FULL
execute if entity @s[x=-122, dx=27, y=41, dy=14, z=31, dz=14] run function omegaflowey.entity:player/room/underground/parkour/check
execute if entity @s[x=-122, dx=27, y=41, dy=14, z=31, dz=14] run return run \
function omegaflowey.entity:player/room/underground/parkour/check
function omegaflowey.entity:player/room/underground/back_cave/check
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ data modify storage omegaflowey:telemetry schema_booth_n set value { \
'room.underground.parkour.before_final_jump.enter': 27, \
'room.underground.parkour.finish.enter': 28, \
'player.shown_feedback_link.won_fight': 29, \
'room.underground.back_cave.enter': 30, \
'room.underground.back_cave.waterfall_secret.enter': 31, \
}

0 comments on commit 3f8004d

Please sign in to comment.