Skip to content

Commit

Permalink
add storage floating text
Browse files Browse the repository at this point in the history
  • Loading branch information
shp1natqp committed Jan 3, 2025
1 parent 4d64021 commit aba5ed2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/modules/places/lib/city.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { LootTable } from 'lib'
import { location, LootTable } from 'lib'
import { Crate } from 'lib/crates/crate'
import { Cutscene } from 'lib/cutscene'
import { Quest } from 'lib/quest'
import { t } from 'lib/text'
import { Jeweler } from 'modules/places/lib/npc/jeweler'
import { Scavenger } from './npc/scavenger'
import { SafePlace } from './safe-place'
import { FloatingText } from 'lib/rpg/floating-text'

export class City extends SafePlace {
quests: Quest[] = []
Expand All @@ -19,6 +20,12 @@ export class City extends SafePlace {
donutLoot.id = `§7${this.group.id}§f Donut Crate`
const normal = new Crate(this.group.point('normal kit').name(t`§7Обычный`), normalLoot)
const donut = new Crate(this.group.point('donut kit').name(t`§bУсиленный`), donutLoot)
const storageLocationpoint = this.group.point('storage text').name(t`§9Хранилище`)
const storageLocation = location(storageLocationpoint)
const storageFloatingText = new FloatingText(storageLocationpoint.fullId, this.group.dimensionId)
storageLocation.onLoad.subscribe(location => {
storageFloatingText.update(location, storageLocationpoint.name)
})

return { normal, donut }
}
Expand Down

0 comments on commit aba5ed2

Please sign in to comment.