Skip to content

Commit

Permalink
Avoid repeated definitions of shared STT behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Oct 14, 2023
1 parent 79cc205 commit 827afe2
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 89 deletions.
2 changes: 1 addition & 1 deletion data/debug/games/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"type": "ltminigames:join_late_with_role",
"role": "participant"
},
"lt:survive_the_tide/stream_integrations"
"lt:survive_the_tide/integrations"
]
}
2 changes: 2 additions & 0 deletions data/lt/behaviors/survive_the_tide/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
{
"type": "ltminigames:on_damage",
"actions": [
Expand Down
3 changes: 3 additions & 0 deletions data/lt/behaviors/survive_the_tide/mode/ffa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"lt:survive_the_tide/mode/ffa/win_logic"
]
8 changes: 8 additions & 0 deletions data/lt/behaviors/survive_the_tide/mode/teams.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"type": "ltminigames:teams",
"friendly_fire": "$friendly_fire"
},
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow"
]
4 changes: 1 addition & 3 deletions data/lt/games/survive_the_tide/1/dune.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
},
"lt:survive_the_tide/1/map",
"lt:survive_the_tide/1/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/weather/dune",
"lt:survive_the_tide/common"
]
Expand Down
4 changes: 1 addition & 3 deletions data/lt/games/survive_the_tide/1/normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
},
"lt:survive_the_tide/1/map",
"lt:survive_the_tide/1/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/1/weather",
"lt:survive_the_tide/common"
]
Expand Down
4 changes: 1 addition & 3 deletions data/lt/games/survive_the_tide/1/snowpocalypse.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
},
"lt:survive_the_tide/1/map",
"lt:survive_the_tide/1/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/weather/snowpocalypse",
"lt:survive_the_tide/common"
]
Expand Down
6 changes: 1 addition & 5 deletions data/lt/games/survive_the_tide/1/teams_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@
"game_type": "adventure",
"join_late_with_role": "spectator"
},
"ltminigames:teams",
"lt:survive_the_tide/1/map",
"lt:survive_the_tide/1/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/mode/teams",
"lt:survive_the_tide/1/weather",
"lt:survive_the_tide/common"
]
Expand Down
6 changes: 1 addition & 5 deletions data/lt/games/survive_the_tide/1/teams_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@
"game_type": "adventure",
"join_late_with_role": "spectator"
},
"ltminigames:teams",
"lt:survive_the_tide/1/map",
"lt:survive_the_tide/1/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/mode/teams",
"lt:survive_the_tide/1/weather",
"lt:survive_the_tide/common"
]
Expand Down
4 changes: 1 addition & 3 deletions data/lt/games/survive_the_tide/2/dune.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
},
"lt:survive_the_tide/2/map",
"lt:survive_the_tide/2/phases",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/weather/dune",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
4 changes: 1 addition & 3 deletions data/lt/games/survive_the_tide/2/normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
},
"lt:survive_the_tide/2/map",
"lt:survive_the_tide/2/phases",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/2/weather",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
12 changes: 4 additions & 8 deletions data/lt/games/survive_the_tide/2/philza.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,13 @@
"game_type": "adventure",
"join_late_with_role": "spectator"
},
{
"type": "ltminigames:teams",
"friendly_fire": true
},
{"type": "ltminigames:set_max_health", "max_health_by_team": {"everyone": 4.0}},
"lt:survive_the_tide/2/map",
"lt:survive_the_tide/2/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
{
"type": "lt:survive_the_tide/mode/teams",
"friendly_fire": true
},
"lt:survive_the_tide/2/weather",
"lt:survive_the_tide/common"
]
Expand Down
4 changes: 1 addition & 3 deletions data/lt/games/survive_the_tide/2/snowpocalypse.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
},
"lt:survive_the_tide/2/map",
"lt:survive_the_tide/2/phases",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/weather/snowpocalypse",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
6 changes: 1 addition & 5 deletions data/lt/games/survive_the_tide/2/teams_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@
"game_type": "adventure",
"join_late_with_role": "spectator"
},
"ltminigames:teams",
"lt:survive_the_tide/2/map",
"lt:survive_the_tide/2/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/mode/teams",
"lt:survive_the_tide/2/weather",
"lt:survive_the_tide/common"
]
Expand Down
6 changes: 1 addition & 5 deletions data/lt/games/survive_the_tide/2/teams_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@
"game_type": "adventure",
"join_late_with_role": "spectator"
},
"ltminigames:teams",
"lt:survive_the_tide/2/map",
"lt:survive_the_tide/2/phases",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/mode/teams",
"lt:survive_the_tide/2/weather",
"lt:survive_the_tide/common"
]
Expand Down
5 changes: 1 addition & 4 deletions data/lt/games/survive_the_tide/3/high_tide.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
"tide": 190
},
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/3/weather",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
7 changes: 1 addition & 6 deletions data/lt/games/survive_the_tide/3/high_tide_teams_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@
"type": "lt:survive_the_tide/3/map",
"tide": 190
},
"ltminigames:teams",
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/mode/teams",
"lt:survive_the_tide/3/weather",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
7 changes: 1 addition & 6 deletions data/lt/games/survive_the_tide/3/high_tide_teams_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@
"type": "lt:survive_the_tide/3/map",
"tide": 190
},
"ltminigames:teams",
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/mode/teams",
"lt:survive_the_tide/3/weather",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
5 changes: 1 addition & 4 deletions data/lt/games/survive_the_tide/3/low_tide.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
"tide": 180
},
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/3/weather",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
5 changes: 1 addition & 4 deletions data/lt/games/survive_the_tide/3/low_tide_dune.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
"tide": 180
},
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/weather/dune",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
5 changes: 1 addition & 4 deletions data/lt/games/survive_the_tide/3/low_tide_snowpocalypse.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
"tide": 180
},
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/ffa/win_logic",
"lt:survive_the_tide/mode/ffa",
"lt:survive_the_tide/weather/snowpocalypse",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
7 changes: 1 addition & 6 deletions data/lt/games/survive_the_tide/3/philza.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,10 @@
"type": "lt:survive_the_tide/3/map",
"tide": 190
},
"ltminigames:teams",
{"type": "ltminigames:set_max_health", "max_health_by_team": {"everyone": 4.0}},
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/mode/teams",
"lt:survive_the_tide/3/weather",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}
11 changes: 3 additions & 8 deletions data/lt/games/survive_the_tide/3/philza_chaos.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,13 @@
"type": "lt:survive_the_tide/3/map",
"tide": 190
},
{"type": "ltminigames:set_max_health", "max_health_by_team": {"everyone": 4.0}},
"lt:survive_the_tide/3/phases",
{
"type": "ltminigames:teams",
"type": "lt:survive_the_tide/mode/teams",
"friendly_fire": true
},
{"type": "ltminigames:set_max_health", "max_health_by_team": {"everyone": 4.0}},
"lt:survive_the_tide/3/phases",
"lt:survive_the_tide/pets",
"lt:survive_the_tide/ruleset",
"lt:survive_the_tide/mode/teams/win_logic",
"lt:survive_the_tide/mode/teams/glow",
"lt:survive_the_tide/3/weather",
"lt:survive_the_tide/intro",
"lt:survive_the_tide/common"
]
}

0 comments on commit 827afe2

Please sign in to comment.