cs fix, demiplane fix

This commit is contained in:
Ed
2025-05-30 13:28:08 +03:00
parent 5e6d1d0b3a
commit f78b1e07c5
5 changed files with 13 additions and 20 deletions

View File

@@ -39,6 +39,9 @@
Visible="False"
HorizontalAlignment="Center"
FontColorOverride="#1e6651" />
<BoxContainer Name="RandomProductsContainer" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
<!-- Random products will be added as children here -->
</BoxContainer>
<controls:SplitBar MinHeight="10">
</controls:SplitBar>
</BoxContainer>

View File

@@ -50,12 +50,10 @@ public sealed partial class GuideReagentReaction : BoxContainer, ISearchableCont
{
// If there aren't any variations, this label will be not visible
RandomVariationsLabel.Visible = true;
var randomProductLabel = new RichTextLabel {
HorizontalAlignment=HAlignment.Left,
VerticalAlignment=VAlignment.Center,
};
Container randomProductContainer = RandomProductsContainer;
var randomProducts = new Dictionary<string, FixedPoint2>(randomVariation);
RandomVariations.AddChild(randomProductLabel);
RandomVariations.AddChild(randomProductContainer);
RandomVariations.AddChild(new SplitBar
{
MinHeight = 10,
@@ -65,7 +63,7 @@ public sealed partial class GuideReagentReaction : BoxContainer, ISearchableCont
if (reactantProto.Catalyst)
randomProducts.Add(reagent, reactantProto.Amount);
}
SetReagents(randomProducts, ref randomProductLabel, protoMan);
SetReagents(randomProducts, ref randomProductContainer, protoMan);
}
// CP14 random reagents end

View File

@@ -76,7 +76,6 @@ public sealed class CP14SpawnRandomDemiplaneJob : Job<bool>
var expeditionConfig = _prototypeManager.Index(_config);
var indexedLocation = _prototypeManager.Index(expeditionConfig.LocationConfig);
dungeonConfig.Data = indexedLocation.Data;
dungeonConfig.Layers.AddRange(indexedLocation.Layers);
dungeonConfig.ReserveTiles = indexedLocation.ReserveTiles;

View File

@@ -72,13 +72,6 @@
speed: 3.5
dis: 2
- type: entityLootTable
id: CP14GatherAirLily
entries:
- id: CP14AirLily
amount: 2
maxAmount: 3
- type: entity
id: CP14GatherableWaterAirLily
parent:

View File

@@ -2,7 +2,7 @@
id: EntryRoom
generationProb: 0
layers:
- !type:OreDunGen
- !type:CP14OreDunGen
entity: CP14DemiplanEnterRoomMarker
count: 1
minGroupSize: 1
@@ -12,7 +12,7 @@
id: Core
generationProb: 0
layers:
- !type:OreDunGen
- !type:CP14OreDunGen
entity: CP14DemiplanCoreRoomMarker
count: 1
minGroupSize: 1
@@ -22,12 +22,12 @@
id: Exit
generationProb: 0
layers:
- !type:OreDunGen
- !type:CP14OreDunGen
entity: CP14DemiplanePassway
count: 1
minGroupSize: 1
maxGroupSize: 1
- !type:OreDunGen
- !type:CP14OreDunGen
entity: CP14DemiplaneHint
count: 20
minGroupSize: 1
@@ -37,12 +37,12 @@
id: DemiplaneDecor
generationProb: 0
layers:
- !type:OreDunGen
- !type:CP14OreDunGen
entity: CP14AstralCorrosion
count: 15
minGroupSize: 3
maxGroupSize: 10
- !type:OreDunGen
- !type:CP14OreDunGen
entityMask:
- CP14WallStone
- CP14WallDirt