Convenient Z-Levels (#421)

* clear ores and herbals frmo generation

* remake simple zlevels system

* GetMapOffset

* woohoo

* autolink between zlevels

* 5am

* somwthing sommetinh work

* Update CP14StationZLevelsSystem.cs

* fix biomespawner portal deletion

* some docs

* Revert "clear ores and herbals frmo generation"

This reverts commit 658d15a602.
This commit is contained in:
Ed
2024-08-25 19:53:15 +05:00
committed by GitHub
parent ea9c6ee7bf
commit 79515d9303
14 changed files with 264 additions and 71 deletions

View File

@@ -14,6 +14,11 @@
drawdepth: BelowFloor
sprite: _CP14/Markers/biome.rsi
- type: CP14BiomeSpawner
deleteBlacklist:
components:
- Portal
- MindContainer
- CP14WorldBounding
- type: PlacementReplacement
key: CP14BiomeSpawner

View File

@@ -1,6 +1,7 @@
- type: entity
id: CP14DungeonEntrance
name: dungeon entrance
noSpawn: true
description: The dark depths of the underworld are calling you.
placement:
mode: SnapgridCenter
@@ -31,12 +32,12 @@
- type: Portal
canTeleportToOtherMaps: true
randomTeleport: false
- type: CP14AutoLink
- type: entity
parent: CP14DungeonEntrance
id: CP14DungeonExit
name: dungeon exit
noSpawn: true
description: A way out of the dark underworld into the overworld.
components:
- type: Sprite
@@ -50,4 +51,19 @@
radius: 3
energy: 1
netsync: false
- type: CP14AutoLink
- type: entity
parent: CP14DungeonEntrance
id: CP14DungeonEntranceAutoLink
components:
- type: CP14ZLevelAutoPortal
zLevelOffset: -1 # Go into deep
otherSideProto: CP14DungeonExit
- type: entity
parent: CP14DungeonExit
id: CP14DungeonExitAutoLink
components:
- type: CP14ZLevelAutoPortal
zLevelOffset: 1 # Go onto surface
otherSideProto: CP14DungeonEntrance

View File

@@ -24,9 +24,11 @@
AlchemyTest:
stationProto: StandardStationArena
components:
- type: CP14StationAdditionalMap
mapPaths:
- /Maps/_CP14/alchemy_test_layer2.yml
- type: CP14StationZLevels
defaultMapLevel: 0
levels:
1:
path: /Maps/_CP14/alchemy_test_layer2.yml
- type: StationNameSetup
mapNameTemplate: "Alchemy test"
- type: StationJobs
@@ -78,4 +80,11 @@
CP14GuardCommander: [1, 1]
CP14HouseKeeper: [1, 1]
- type: CP14StationExpeditionTarget
shuttlePath: /Maps/_CP14/Shuttles/test-ship.yml
shuttlePath: /Maps/_CP14/Shuttles/test-ship.yml
- type: CP14StationZLevels
defaultMapLevel: 0
levels:
-1:
path: /Maps/_CP14/alchemy_test_layer2.yml
-2:
path: /Maps/_CP14/battle_royale.yml

View File

@@ -27,3 +27,8 @@
- type: StationJobs
availableJobs:
CP14Adventurer: [ -1, -1 ]
- type: CP14StationZLevels
defaultMapLevel: 0
levels:
-1:
path: /Maps/_CP14/alchemy_test_layer2.yml

View File

@@ -0,0 +1,9 @@
- type: biomeMarkerLayer
id: CP14OreGold
entityMask:
CP14WallStone: CP14PlantPumpkinDeath
maxCount: 30
minGroupSize: 10
maxGroupSize: 15
radius: 4