use BoostAI for enterPayloadCommand & better onlyDepositCore handling (#11297)

This commit is contained in:
WMF
2025-10-18 16:31:47 +02:00
committed by GitHub
parent c2108a3ce5
commit c2c1271a4c
8 changed files with 17 additions and 5 deletions

View File

@@ -63,6 +63,8 @@ public class Block extends UnlockableContent implements Senseable{
public boolean acceptsPayload = false;
/** Visual flag use for blending of certain transportation blocks. */
public boolean acceptsItems = false;
/** If true, this block won't be affected by the onlyDepositCore rule. */
public boolean alwaysAllowDeposit = false;
/** If true, all item capacities of this block are separate instead of pooled as one number. */
public boolean separateItemCapacity = false;
/** maximum items this block can carry (usually, this is per-type of item) */

View File

@@ -68,6 +68,7 @@ public class CoreBlock extends StorageBlock{
solid = true;
update = true;
hasItems = true;
alwaysAllowDeposit = true;
priority = TargetPriority.core;
flags = EnumSet.of(BlockFlag.core);
unitCapModifier = 10;

View File

@@ -126,5 +126,10 @@ public class StorageBlock extends Block{
public boolean canPickup(){
return linkedCore == null;
}
@Override
public boolean allowDeposit(){
return linkedCore != null || super.allowDeposit();
}
}
}