From aba5ed20442a4bf24897e65ad6ecedbddce1ee46 Mon Sep 17 00:00:00 2001 From: shp1nat00 Date: Fri, 3 Jan 2025 23:26:17 +0300 Subject: [PATCH] add storage floating text --- src/modules/places/lib/city.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/places/lib/city.ts b/src/modules/places/lib/city.ts index 5efc931e..22561579 100644 --- a/src/modules/places/lib/city.ts +++ b/src/modules/places/lib/city.ts @@ -1,4 +1,4 @@ -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' @@ -6,6 +6,7 @@ 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[] = [] @@ -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 } }