Skip to content

Commit

Permalink
fffffff
Browse files Browse the repository at this point in the history
  • Loading branch information
leaftail1880 committed Aug 27, 2024
1 parent 3c01623 commit cea129c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/quest/quest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ export class Quest {
player.onScreenDisplay.setHudTitle('§6' + this.name, {
subtitle: this.description,
fadeInDuration: 0,
stayDuration: 20 * 4,
fadeOutDuration: 20,
stayDuration: 20 * 5,
fadeOutDuration: 0,
})
player.playSound(Sounds.LevelUp)
},
Expand Down
7 changes: 6 additions & 1 deletion src/lib/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ export class Sidebar<E = any> {
if (Array.isArray(content)) {
this.clearSidebar(player)
for (const [i, tip] of content.entries()) {
player.onScreenDisplay.setTip((i + 1) as 1 | 2 | 3 | 4 | 5, Sidebar.wrap(tip ?? '', options.maxWordCount))
if (i === 2) {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
player.onScreenDisplay.setActionBar(tip || '')
} else {
player.onScreenDisplay.setTip((i + 1) as 1 | 2 | 3 | 4 | 5, Sidebar.wrap(tip ?? '', options.maxWordCount))
}
}
} else {
this.clearTips(player)
Expand Down
9 changes: 8 additions & 1 deletion src/modules/quests/learning/learning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,16 @@ class Learning {
console.log('Teleporting to', Vector.string(this.randomTeleportLocation))
player.camera.fade({
fadeColor: { blue: 0, green: 0, red: 0 },
fadeTime: { fadeInTime: 0, holdTime: 4, fadeOutTime: 2 },
fadeTime: { fadeInTime: 0, holdTime: 90000, fadeOutTime: 2 },
})
player.teleport(this.randomTeleportLocation)

new ActionForm(
'Заметка',
'Ты - выживший, ты мало что умеешь, и просто так рубить блоки не можешь, да. Следуй по компасу.',
).addButton('Понятно', () => {
player.camera.fade({ fadeTime: { fadeInTime: 0, holdTime: 0, fadeOutTime: 2 } })
})
}
}
}
Expand Down

0 comments on commit cea129c

Please sign in to comment.