Skip to content

Commit 7d85f03

Browse files
committed
feat: add all coords for tutorial
1 parent 6335e1f commit 7d85f03

1 file changed

Lines changed: 97 additions & 1 deletion

File tree

src/main/java/zadudoder/spmhelper/tutorial/TutorialManager.java

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ public static void stopTutorial() {
2424
isEnabled = false;
2525
if (checkpoints != null) {
2626
checkpoints.clear();
27-
}
27+
pullText("Туториал окончен");
28+
} else pullText("Вы не начинали туториал");
2829
}
2930

3031
public static void skipTutorial() {
3132
Runnable action = checkpoints.getLast().action;
3233
checkpoints.clear();
3334
action.run();
35+
pullText("Часть скипнута");
3436
}
3537

3638
private static void pullText(String text) {
@@ -73,6 +75,7 @@ private static void startBankTutorial() {
7375
checkpoints.add(new TutorialPoint(-25, 73, -42, OVERWORLD, null, false));
7476
checkpoints.add(new TutorialPoint(-25, 72, -49, OVERWORLD, null, false));
7577
checkpoints.add(new TutorialPoint(-28, 71, -55, OVERWORLD, null, false));
78+
checkpoints.add(new TutorialPoint(-27, 71, -59, OVERWORLD, null, false));
7679
checkpoints.add(new TutorialPoint(-26, 72, -66, OVERWORLD, TutorialManager::BankAction, true));
7780
}
7881

@@ -209,5 +212,98 @@ private static void goToFSB() {
209212
checkpoints.add(new TutorialPoint(16, 80, 52, OVERWORLD, null, false));
210213
checkpoints.add(new TutorialPoint(20, 80, 60, OVERWORLD, null, false));
211214
checkpoints.add(new TutorialPoint(20, 80, 66, OVERWORLD, null, false));
215+
checkpoints.add(new TutorialPoint(20, 76, 74, OVERWORLD, null, false));
216+
checkpoints.add(new TutorialPoint(20, 72, 82, OVERWORLD, null, false));
217+
checkpoints.add(new TutorialPoint(16, 71, 91, OVERWORLD, null, false));
218+
checkpoints.add(new TutorialPoint(12, 71, 99, OVERWORLD, null, false));
219+
checkpoints.add(new TutorialPoint(11, 71, 108, OVERWORLD, null, false));
220+
checkpoints.add(new TutorialPoint(4, 71, 110, OVERWORLD, null, false));
221+
checkpoints.add(new TutorialPoint(0, 71, 111, OVERWORLD, TutorialManager::FSBAction, true));
222+
}
223+
224+
private static void FSBAction() {
225+
pullText("Прыгайте в портал и бегите к палатке новичков, там, где вы начинали.");
226+
goToBiblioteka();
227+
}
228+
229+
private static void goToBiblioteka() {
230+
checkpoints.add(new TutorialPoint(-1, 71, 110, OVERWORLD, null, false));
231+
checkpoints.add(new TutorialPoint(-7, 71, 109, OVERWORLD, null, false));
232+
checkpoints.add(new TutorialPoint(11, 71, 106, OVERWORLD, null, false));
233+
checkpoints.add(new TutorialPoint(-14, 72, 108, OVERWORLD, null, false));
234+
checkpoints.add(new TutorialPoint(-21, 72, 104, OVERWORLD, null, false));
235+
checkpoints.add(new TutorialPoint(-26, 72, 104, OVERWORLD, null, false));
236+
checkpoints.add(new TutorialPoint(-34, 72, 104, OVERWORLD, null, false));
237+
checkpoints.add(new TutorialPoint(-42, 72, 104, OVERWORLD, null, false));
238+
checkpoints.add(new TutorialPoint(-48, 72, 104, OVERWORLD, null, false));
239+
checkpoints.add(new TutorialPoint(-53, 72, 104, OVERWORLD, null, false));
240+
checkpoints.add(new TutorialPoint(-61, 71, 105, OVERWORLD, null, false));
241+
checkpoints.add(new TutorialPoint(-68, 72, 106, OVERWORLD, null, false));
242+
checkpoints.add(new TutorialPoint(-75, 73, 107, OVERWORLD, null, false));
243+
checkpoints.add(new TutorialPoint(-84, 73, 108, OVERWORLD, null, false));
244+
checkpoints.add(new TutorialPoint(-92, 72, 110, OVERWORLD, null, false));
245+
checkpoints.add(new TutorialPoint(-99, 71, 111, OVERWORLD, null, false));
246+
checkpoints.add(new TutorialPoint(-104, 71, 114, OVERWORLD, null, false));
247+
checkpoints.add(new TutorialPoint(-104, 71, 121, OVERWORLD, null, false));
248+
checkpoints.add(new TutorialPoint(-106, 71, 125, OVERWORLD, null, false));
249+
checkpoints.add(new TutorialPoint(-110, 72, 127, OVERWORLD, null, false));
250+
checkpoints.add(new TutorialPoint(-111, 72, 132, OVERWORLD, null, false));
251+
checkpoints.add(new TutorialPoint(-112, 72, 138, OVERWORLD, null, false));
252+
checkpoints.add(new TutorialPoint(-116, 72, 144, OVERWORLD, null, false));
253+
checkpoints.add(new TutorialPoint(-121, 72, 148, OVERWORLD, null, false));
254+
checkpoints.add(new TutorialPoint(-126, 72, 149, OVERWORLD, null, false));
255+
checkpoints.add(new TutorialPoint(-131, 72, 146, OVERWORLD, null, false));
256+
checkpoints.add(new TutorialPoint(-136, 72, 143, OVERWORLD, null, false));
257+
checkpoints.add(new TutorialPoint(-136, 71, 135, OVERWORLD, null, false));
258+
checkpoints.add(new TutorialPoint(-139, 71, 131, OVERWORLD, null, false));
259+
checkpoints.add(new TutorialPoint(-136, 71, 125, OVERWORLD, null, false));
260+
checkpoints.add(new TutorialPoint(-136, 72, 119, OVERWORLD, null, false));
261+
checkpoints.add(new TutorialPoint(-133, 72, 116, OVERWORLD, null, false));
262+
checkpoints.add(new TutorialPoint(-127, 72, 114, OVERWORLD, null, false));
263+
checkpoints.add(new TutorialPoint(-120, 72, 115, OVERWORLD, null, false));
264+
checkpoints.add(new TutorialPoint(-116, 72, 120, OVERWORLD, null, false));
265+
checkpoints.add(new TutorialPoint(-112, 72, 125, OVERWORLD, null, false));
266+
checkpoints.add(new TutorialPoint(-109, 72, 127, OVERWORLD, TutorialManager::BibliotekaAction, true));
267+
}
268+
269+
private static void BibliotekaAction() {
270+
pullText("Вы посетили библиотеку");
271+
goToSpawn();
272+
}
273+
274+
private static void goToSpawn() {
275+
checkpoints.add(new TutorialPoint(-105, 71, 124, OVERWORLD, null, false));
276+
checkpoints.add(new TutorialPoint(-104, 71, 118, OVERWORLD, null, false));
277+
checkpoints.add(new TutorialPoint(-102, 71, 112, OVERWORLD, null, false));
278+
checkpoints.add(new TutorialPoint(-96, 72, 110, OVERWORLD, null, false));
279+
checkpoints.add(new TutorialPoint(-88, 73, 109, OVERWORLD, null, false));
280+
checkpoints.add(new TutorialPoint(-78, 73, 107, OVERWORLD, null, false));
281+
checkpoints.add(new TutorialPoint(-69, 73, 106, OVERWORLD, null, false));
282+
checkpoints.add(new TutorialPoint(-62, 71, 104, OVERWORLD, null, false));
283+
checkpoints.add(new TutorialPoint(-60, 71, 99, OVERWORLD, null, false));
284+
checkpoints.add(new TutorialPoint(-61, 72, 93, OVERWORLD, null, false));
285+
checkpoints.add(new TutorialPoint(-62, 73, 84, OVERWORLD, null, false));
286+
checkpoints.add(new TutorialPoint(-61, 73, 75, OVERWORLD, null, false));
287+
checkpoints.add(new TutorialPoint(-61, 73, 67, OVERWORLD, null, false));
288+
checkpoints.add(new TutorialPoint(-61, 73, 59, OVERWORLD, null, false));
289+
checkpoints.add(new TutorialPoint(-63, 75, 53, OVERWORLD, null, false));
290+
checkpoints.add(new TutorialPoint(-64, 76, 47, OVERWORLD, null, false));
291+
checkpoints.add(new TutorialPoint(-60, 75, 43, OVERWORLD, null, false));
292+
checkpoints.add(new TutorialPoint(-54, 72, 36, OVERWORLD, null, false));
293+
checkpoints.add(new TutorialPoint(-48, 72, 31, OVERWORLD, null, false));
294+
checkpoints.add(new TutorialPoint(-44, 74, 29, OVERWORLD, null, false));
295+
checkpoints.add(new TutorialPoint(-39, 77, 28, OVERWORLD, null, false));
296+
checkpoints.add(new TutorialPoint(-31, 79, 24, OVERWORLD, null, false));
297+
checkpoints.add(new TutorialPoint(-24, 79, 20, OVERWORLD, null, false));
298+
checkpoints.add(new TutorialPoint(-18, 79, 17, OVERWORLD, null, false));
299+
checkpoints.add(new TutorialPoint(-11, 80, 16, OVERWORLD, null, false));
300+
checkpoints.add(new TutorialPoint(-2, 81, 17, OVERWORLD, null, false));
301+
checkpoints.add(new TutorialPoint(4, 81, 22, OVERWORLD, null, false));
302+
checkpoints.add(new TutorialPoint(10, 81, 27, OVERWORLD, null, false));
303+
checkpoints.add(new TutorialPoint(7, 81, 33, OVERWORLD, TutorialManager::SpawnAction, true));
304+
}
305+
306+
private static void SpawnAction() {
307+
pullText("Вы закончили экскурсию!");
212308
}
213309
}

0 commit comments

Comments
 (0)