Skip to content

Commit c868eeb

Browse files
committed
logic scenarios: enemyKill
1 parent 9447b79 commit c868eeb

6 files changed

Lines changed: 346 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"$schema": "../../../../../sm-json-data/schema/m3-room.schema.json",
3+
"roomEnvironments": [{"heated": false}],
4+
"id": 0,
5+
"roomAddress": "0x0000",
6+
"name": "Test Room",
7+
"area": "Test Area",
8+
"subarea": "Test Subarea",
9+
"mapTileMask": [
10+
[1]
11+
],
12+
"nodes": [
13+
{
14+
"id": 1,
15+
"name": "Starting Node",
16+
"nodeType": "junction",
17+
"nodeSubType": "junction",
18+
"mapTileMask": [
19+
[1]
20+
]
21+
},
22+
{
23+
"id": 2,
24+
"name": "Ending Node",
25+
"nodeType": "junction",
26+
"nodeSubType": "junction",
27+
"mapTileMask": [
28+
[1]
29+
]
30+
}
31+
],
32+
"strats": [
33+
{
34+
"link": [1, 2],
35+
"name": "Beetoms Kill",
36+
"requires": [
37+
{"enemyKill": {
38+
"enemies": [["Beetom"], ["Beetom"], ["Beetom", "Beetom"]],
39+
"excludedWeapons": ["Bombs"]
40+
}}
41+
],
42+
"flashSuitChecked": true,
43+
"blueSuitChecked": true
44+
}
45+
]
46+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "../../schema/scenarios.schema.json",
3+
"scenarios": [
4+
{
5+
"name": "Missile",
6+
"globalState": {
7+
"maxMissiles": 5
8+
},
9+
"startRoomId": 0 ,
10+
"startNodeId": 1,
11+
"startState": {
12+
"missiles": {"remaining": 4}
13+
},
14+
"endRoomId": 0,
15+
"endNodeId": 2
16+
},
17+
{
18+
"name": "Fail: Bombs (Excluded Weapon)",
19+
"globalState": {
20+
"items": ["Morph", "Bombs"]
21+
},
22+
"startRoomId": 0 ,
23+
"startNodeId": 1,
24+
"endRoomId": 0,
25+
"endNodeId": 2,
26+
"fail": true
27+
}
28+
]
29+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"$schema": "../../../../../sm-json-data/schema/m3-room.schema.json",
3+
"roomEnvironments": [{"heated": false}],
4+
"id": 0,
5+
"roomAddress": "0x0000",
6+
"name": "Test Room",
7+
"area": "Test Area",
8+
"subarea": "Test Subarea",
9+
"mapTileMask": [
10+
[1]
11+
],
12+
"nodes": [
13+
{
14+
"id": 1,
15+
"name": "Starting Node",
16+
"nodeType": "junction",
17+
"nodeSubType": "junction",
18+
"mapTileMask": [
19+
[1]
20+
]
21+
},
22+
{
23+
"id": 2,
24+
"name": "Ending Node",
25+
"nodeType": "junction",
26+
"nodeSubType": "junction",
27+
"mapTileMask": [
28+
[1]
29+
]
30+
}
31+
],
32+
"strats": [
33+
{
34+
"link": [1, 2],
35+
"name": "Beetoms Kill",
36+
"requires": [
37+
{"enemyKill": {
38+
"enemies": [["Beetom"], ["Beetom"], ["Beetom", "Beetom"]],
39+
"explicitWeapons": ["Bombs"]
40+
}}
41+
],
42+
"flashSuitChecked": true,
43+
"blueSuitChecked": true
44+
}
45+
]
46+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "../../schema/scenarios.schema.json",
3+
"scenarios": [
4+
{
5+
"name": "Fail: Missile (Not in Explicit Weapons)",
6+
"globalState": {
7+
"maxMissiles": 5
8+
},
9+
"startRoomId": 0 ,
10+
"startNodeId": 1,
11+
"startState": {
12+
"missiles": {"remaining": 4}
13+
},
14+
"endRoomId": 0,
15+
"endNodeId": 2,
16+
"fail": true
17+
},
18+
{
19+
"name": "Bombs",
20+
"globalState": {
21+
"items": ["Morph", "Bombs"]
22+
},
23+
"startRoomId": 0 ,
24+
"startNodeId": 1,
25+
"endRoomId": 0,
26+
"endNodeId": 2
27+
}
28+
]
29+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "../../../../../sm-json-data/schema/m3-room.schema.json",
3+
"roomEnvironments": [{"heated": false}],
4+
"id": 0,
5+
"roomAddress": "0x0000",
6+
"name": "Test Room",
7+
"area": "Test Area",
8+
"subarea": "Test Subarea",
9+
"mapTileMask": [
10+
[1]
11+
],
12+
"nodes": [
13+
{
14+
"id": 1,
15+
"name": "Starting Node",
16+
"nodeType": "junction",
17+
"nodeSubType": "junction",
18+
"mapTileMask": [
19+
[1]
20+
]
21+
},
22+
{
23+
"id": 2,
24+
"name": "Ending Node",
25+
"nodeType": "junction",
26+
"nodeSubType": "junction",
27+
"mapTileMask": [
28+
[1]
29+
]
30+
}
31+
],
32+
"strats": [
33+
{
34+
"link": [1, 2],
35+
"name": "Beetoms Kill",
36+
"requires": [
37+
{"enemyKill": {
38+
"enemies": [["Beetom"], ["Beetom"], ["Beetom", "Beetom"]]
39+
}}
40+
],
41+
"flashSuitChecked": true,
42+
"blueSuitChecked": true
43+
}
44+
]
45+
}
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{
2+
"$schema": "../../schema/scenarios.schema.json",
3+
"scenarios": [
4+
{
5+
"name": "Fail: No Weapons",
6+
"startRoomId": 0,
7+
"startNodeId": 1,
8+
"endRoomId": 0,
9+
"endNodeId": 2,
10+
"fail": true
11+
},
12+
{
13+
"name": "Fail: Grapple (Invulnerable)",
14+
"globalState": {
15+
"items": ["Grapple"]
16+
},
17+
"startRoomId": 0,
18+
"startNodeId": 1,
19+
"endRoomId": 0,
20+
"endNodeId": 2,
21+
"fail": true
22+
},
23+
{
24+
"name": "Fail: Full Beam (Invulnerable)",
25+
"globalState": {
26+
"items": ["Charge", "Wave", "Ice", "Spazer", "Plasma"]
27+
},
28+
"startRoomId": 0,
29+
"startNodeId": 1,
30+
"endRoomId": 0,
31+
"endNodeId": 2,
32+
"fail": true
33+
},
34+
{
35+
"name": "Missile",
36+
"globalState": {
37+
"maxMissiles": 5
38+
},
39+
"startRoomId": 0 ,
40+
"startNodeId": 1,
41+
"startState": {
42+
"missiles": {"remaining": 4}
43+
},
44+
"endRoomId": 0,
45+
"endNodeId": 2
46+
},
47+
{
48+
"name": "Supers",
49+
"globalState": {
50+
"maxSupers": 5
51+
},
52+
"startRoomId": 0 ,
53+
"startNodeId": 1,
54+
"startState": {
55+
"supers": {"remaining": 4}
56+
},
57+
"endRoomId": 0,
58+
"endNodeId": 2
59+
},
60+
{
61+
"name": "Power Bombs",
62+
"globalState": {
63+
"items": ["Morph"],
64+
"maxPowerBombs": 5
65+
},
66+
"startRoomId": 0 ,
67+
"startNodeId": 1,
68+
"startState": {
69+
"powerBombs": {"remaining": 3}
70+
},
71+
"endRoomId": 0,
72+
"endNodeId": 2
73+
},
74+
{
75+
"name": "Fail: Power Bombs without Morph",
76+
"globalState": {
77+
"maxPowerBombs": 5
78+
},
79+
"startRoomId": 0 ,
80+
"startNodeId": 1,
81+
"startState": {
82+
"powerBombs": {"remaining": 3}
83+
},
84+
"endRoomId": 0,
85+
"endNodeId": 2,
86+
"fail": true
87+
},
88+
{
89+
"name": "Bombs",
90+
"globalState": {
91+
"items": ["Morph", "Bombs"]
92+
},
93+
"startRoomId": 0 ,
94+
"startNodeId": 1,
95+
"endRoomId": 0,
96+
"endNodeId": 2
97+
},
98+
{
99+
"name": "Fail: Bombs without Morph",
100+
"globalState": {
101+
"items": ["Bombs"]
102+
},
103+
"startRoomId": 0 ,
104+
"startNodeId": 1,
105+
"endRoomId": 0,
106+
"endNodeId": 2,
107+
"fail": true
108+
},
109+
{
110+
"name": "Prefer Missiles over Other Ammo",
111+
"globalState": {
112+
"maxMissiles": 5,
113+
"maxSupers": 5,
114+
"maxPowerBombs": 5
115+
},
116+
"startRoomId": 0,
117+
"startNodeId": 1,
118+
"startState": {
119+
"missiles": {"remaining": 5},
120+
"supers": {"remaining": 5},
121+
"powerBombs": {"remaining": 5}
122+
},
123+
"endRoomId": 0,
124+
"endNodeId": 2,
125+
"endState": {
126+
"missiles": {"remaining": 1},
127+
"supers": {"remaining": 5},
128+
"powerBombs": {"remaining": 5}
129+
}
130+
},
131+
{
132+
"name": "Prefer Supers over Power Bombs",
133+
"globalState": {
134+
"maxSupers": 5,
135+
"maxPowerBombs": 5
136+
},
137+
"startRoomId": 0,
138+
"startNodeId": 1,
139+
"startState": {
140+
"supers": {"remaining": 5},
141+
"powerBombs": {"remaining": 5}
142+
},
143+
"endRoomId": 0,
144+
"endNodeId": 2,
145+
"endState": {
146+
"supers": {"remaining": 1},
147+
"powerBombs": {"remaining": 5}
148+
}
149+
}
150+
]
151+
}

0 commit comments

Comments
 (0)