Skip to content

Commit e7aa6b9

Browse files
committed
feat: some change
1 parent f2c77ee commit e7aa6b9

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

src/main/java/zadudoder/spmhelper/events/Commands.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static void registerCommands() {
113113
}))
114114
.then(ClientCommandManager.literal("Энд")
115115
.executes(context -> {
116-
TutorialManager.startGoToEndAndTalkAboutTrade();
116+
TutorialManager.StartEnd();
117117
context.getSource().sendFeedback(Text.translatable("text.spmhelper.startEndTutorialMessage"));
118118
return 1;
119119
}))
@@ -134,6 +134,12 @@ public static void registerCommands() {
134134
TutorialManager.goToSpawn();
135135
context.getSource().sendFeedback(Text.translatable("text.spmhelper.startGoToSpawnTutorialMessage"));
136136
return 1;
137+
}))
138+
.then(ClientCommandManager.literal("Торговля")
139+
.executes(context -> {
140+
TutorialManager.startGoToEndAndTalkAboutTrade();
141+
context.getSource().sendFeedback(Text.translatable("text.spmhelper.startGoToSpawnTutorialMessage"));
142+
return 1;
137143
})))
138144
.then(ClientCommandManager.literal("stop")
139145
.executes(context -> {

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

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static void startCIKTutorial() {
6666
checkpoints.add(new TutorialPoint(-16, 79, 16, OVERWORLD, null, false));
6767
checkpoints.add(new TutorialPoint(-24, 79, 12, OVERWORLD, null, false));
6868
checkpoints.add(new TutorialPoint(-27, 78, 6, OVERWORLD, null, false));
69-
checkpoints.add(new TutorialPoint(-32, 78, 2, OVERWORLD, null, false));
69+
checkpoints.add(new TutorialPoint(-28, 78, 0, OVERWORLD, null, false));
7070
checkpoints.add(new TutorialPoint(-31, 78, -8, OVERWORLD, TutorialManager::CIKAction, true));
7171
}
7272

@@ -113,6 +113,7 @@ public static void startGalleryTutorial() {
113113
checkpoints.add(new TutorialPoint(59, 64, -139, OVERWORLD, null, false));
114114
checkpoints.add(new TutorialPoint(59, 64, -147, OVERWORLD, null, false)); // Отправить сообщение что нужно прыгать вниз
115115
checkpoints.add(new TutorialPoint(59, 50, -154, OVERWORLD, null, false));
116+
checkpoints.add(new TutorialPoint(59, 50, -160, OVERWORLD, null, false));
116117
checkpoints.add(new TutorialPoint(59, 50, -166, OVERWORLD, TutorialManager::GalleryAction, true));
117118
}
118119

@@ -125,8 +126,8 @@ public static void startLawCourtTutorial() {
125126
if (!isEnabled || checkpoints == null) {
126127
preTutorial();
127128
}
128-
checkpoints.add(new TutorialPoint(59, 50, -166, OVERWORLD, null, false));
129-
checkpoints.add(new TutorialPoint(59, 50, -154, OVERWORLD, null, false)); // Написать поднимайтесь наверх
129+
checkpoints.add(new TutorialPoint(59, 50, -160, OVERWORLD, null, false));
130+
checkpoints.add(new TutorialPoint(59, 50, -154, OVERWORLD, () -> pullText("Поднимайтесь на верх"), false)); // Написать поднимайтесь наверх
130131
checkpoints.add(new TutorialPoint(59, 64, -147, OVERWORLD, null, false));
131132
checkpoints.add(new TutorialPoint(59, 64, -139, OVERWORLD, null, false));
132133
checkpoints.add(new TutorialPoint(59, 63, -126, OVERWORLD, null, false));
@@ -206,7 +207,15 @@ public static void startGoToEndAndTalkAboutTrade() {
206207
checkpoints.add(new TutorialPoint(-173, 130, 102, NETHER, null, false));
207208
checkpoints.add(new TutorialPoint(-173, 130, 112, NETHER, null, false));
208209
checkpoints.add(new TutorialPoint(-173, 130, 115, NETHER, null, false));
209-
checkpoints.add(new TutorialPoint(-1267, 20, 1038, OVERWORLD, null, false));
210+
checkpoints.add(new TutorialPoint(-1266, 20, 1036, OVERWORLD, TutorialManager::GoToEndAction, true));
211+
}
212+
213+
private static void GoToEndAction() {
214+
pullText("Прыгайте портал");
215+
StartEnd();
216+
}
217+
218+
public static void StartEnd() {
210219
checkpoints.add(new TutorialPoint(96, 49, 0, END, null, false));
211220
checkpoints.add(new TutorialPoint(90, 49, 0, END, null, false));
212221
checkpoints.add(new TutorialPoint(87, 54, 0, END, null, false));
@@ -248,7 +257,7 @@ public static void goToFSB() {
248257
}
249258

250259
private static void FSBAction() {
251-
pullText("Прыгайте в портал и бегите к палатке новичков, там, где вы начинали.");
260+
pullText("Вы у здания ФСБ, идём к библиотеке");
252261
goToBiblioteka();
253262
}
254263

@@ -290,9 +299,7 @@ public static void goToBiblioteka() {
290299
checkpoints.add(new TutorialPoint(-133, 72, 116, OVERWORLD, null, false));
291300
checkpoints.add(new TutorialPoint(-127, 72, 114, OVERWORLD, null, false));
292301
checkpoints.add(new TutorialPoint(-120, 72, 115, OVERWORLD, null, false));
293-
checkpoints.add(new TutorialPoint(-116, 72, 120, OVERWORLD, null, false));
294-
checkpoints.add(new TutorialPoint(-112, 72, 125, OVERWORLD, null, false));
295-
checkpoints.add(new TutorialPoint(-109, 72, 127, OVERWORLD, TutorialManager::BibliotekaAction, true));
302+
checkpoints.add(new TutorialPoint(-116, 72, 120, OVERWORLD, TutorialManager::BibliotekaAction, true));
296303
}
297304

298305
private static void BibliotekaAction() {
@@ -304,6 +311,7 @@ public static void goToSpawn() {
304311
if (!isEnabled || checkpoints == null) {
305312
preTutorial();
306313
}
314+
307315
checkpoints.add(new TutorialPoint(-105, 71, 124, OVERWORLD, null, false));
308316
checkpoints.add(new TutorialPoint(-104, 71, 118, OVERWORLD, null, false));
309317
checkpoints.add(new TutorialPoint(-102, 71, 112, OVERWORLD, null, false));

0 commit comments

Comments
 (0)