diff options
| author | nokoe <nokoe@mailbox.org> | 2025-12-13 20:57:51 +0100 |
|---|---|---|
| committer | nokoe <nokoe@mailbox.org> | 2025-12-13 20:57:51 +0100 |
| commit | c01289d4c42e4fc24399401e45042a474feb8620 (patch) | |
| tree | 1b1a108f3ad0f4769f56ed8110b8e0c36f822009 /client/map/tile_factory.gd | |
| parent | 5db2fe76d9032b1915bea9643f5df8cbacd35408 (diff) | |
| download | hurrycurry-c01289d4c42e4fc24399401e45042a474feb8620.tar hurrycurry-c01289d4c42e4fc24399401e45042a474feb8620.tar.bz2 hurrycurry-c01289d4c42e4fc24399401e45042a474feb8620.tar.zst | |
items in crate as tile variant
Diffstat (limited to 'client/map/tile_factory.gd')
| -rw-r--r-- | client/map/tile_factory.gd | 59 |
1 files changed, 45 insertions, 14 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd index 4cfbb724..f3fddfe7 100644 --- a/client/map/tile_factory.gd +++ b/client/map/tile_factory.gd @@ -87,20 +87,51 @@ func produce(raw_name: String, position: Vector2i, neighbors: Array) -> Tile: "house-roof": return HouseRoof.new(ctx) "house-roof-chimney": return HouseRoofChimney.new(ctx) - "bun-crate": return BunCrate.new(ctx) - "cheese-crate": return CheeseCrate.new(ctx) - "coconut-crate": return CoconutCrate.new(ctx) - "fish-crate": return FishCrate.new(ctx) - "flour-crate": return FlourCrate.new(ctx) - "leek-crate": return LeekCrate.new(ctx) - "lettuce-crate": return LettuceCrate.new(ctx) - "mushroom-crate": return MushroomCrate.new(ctx) - "noodles-crate": return NoodlesCrate.new(ctx) - "steak-crate": return SteakCrate.new(ctx) - "rice-crate": return RiceCrate.new(ctx) - "strawberry-crate": return StrawberryCrate.new(ctx) - "tomato-crate": return TomatoCrate.new(ctx) - "potato-crate": return PotatoCrate.new(ctx) + "crate": return Crate.new(ctx) + + # TODO: update maps to use "crate:..." + "bun-crate": + ctx.tile_name.variant = "bun" + return Crate.new(ctx) + "cheese-crate": + ctx.tile_name.variant = "cheese" + return Crate.new(ctx) + "coconut-crate": + ctx.tile_name.variant = "coconut" + return Crate.new(ctx) + "fish-crate": + ctx.tile_name.variant = "fish" + return Crate.new(ctx) + "flour-crate": + ctx.tile_name.variant = "flour" + return Crate.new(ctx) + "leek-crate": + ctx.tile_name.variant = "leek" + return Crate.new(ctx) + "lettuce-crate": + ctx.tile_name.variant = "lettuce" + return Crate.new(ctx) + "mushroom-crate": + ctx.tile_name.variant = "mushroom" + return Crate.new(ctx) + "noodles-crate": + ctx.tile_name.variant = "noodles" + return Crate.new(ctx) + "steak-crate": + ctx.tile_name.variant = "steak" + return Crate.new(ctx) + "rice-crate": + ctx.tile_name.variant = "rice" + return Crate.new(ctx) + "strawberry-crate": + ctx.tile_name.variant = "strawberry" + return Crate.new(ctx) + "tomato-crate": + ctx.tile_name.variant = "tomato" + return Crate.new(ctx) + "potato-crate": + ctx.tile_name.variant = "potato" + return Crate.new(ctx) var t: push_warning("tile %s unknown" % t) |