mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-21 21:51:45 +00:00
Add oil gain requirement text
This commit is contained in:
parent
87a36fd4e7
commit
2d1fb360dc
2 changed files with 11 additions and 3 deletions
src
|
@ -993,10 +993,16 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
sticky={true}
|
sticky={true}
|
||||||
productionDisplay={jsx(() => (
|
productionDisplay={jsx(() => (
|
||||||
<>
|
<>
|
||||||
{Decimal.lt(depth.value, 1000) ? "Reach 1000m to start gaining oil" : formatGain(Decimal.add(computedOilSpeed.value, computedOilConsumption.value))}
|
{Decimal.lt(depth.value, 1000) ? "Reach 1000m to start gaining oil" :
|
||||||
|
<>{formatGain(Decimal.add(computedOilSpeed.value, computedOilConsumption.value))}
|
||||||
|
</>
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
/>
|
/>
|
||||||
|
{Decimal.eq(computedOilSpeed.value, 0) ? <>
|
||||||
|
(Need at least 1 Oil Pump, 1 Heavy Drill and 1 Heavy Extractor active to gain oil)
|
||||||
|
<br/></> : ""}
|
||||||
<Row>
|
<Row>
|
||||||
{
|
{
|
||||||
depthMilestones[6].earned.value ?
|
depthMilestones[6].earned.value ?
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
/></span>
|
/></span>
|
||||||
<span v-if="productionComponent">
|
<span v-if="productionComponent">
|
||||||
<br />
|
<br />
|
||||||
<component :is="productionComponent" ref="effectRef"
|
<component :is="productionComponent" ref="productionRef"
|
||||||
/></span>
|
/></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
/></span>
|
/></span>
|
||||||
<span v-if="productionComponent">
|
<span v-if="productionComponent">
|
||||||
<br />
|
<br />
|
||||||
<component :is="productionComponent" ref="effectRef"
|
<component :is="productionComponent" ref="productionRef"
|
||||||
/></span>
|
/></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -68,6 +68,8 @@ const effectComponent = computeOptionalComponent(
|
||||||
props.effectDisplay as Ref<CoercableComponent | undefined>
|
props.effectDisplay as Ref<CoercableComponent | undefined>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const productionRef = ref<ComponentPublicInstance | null>(null);
|
||||||
|
|
||||||
const productionComponent = computeOptionalComponent(
|
const productionComponent = computeOptionalComponent(
|
||||||
props.productionDisplay as Ref<CoercableComponent | undefined>
|
props.productionDisplay as Ref<CoercableComponent | undefined>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue