cs fix, demiplane fix
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user