Allow for core incineration via rules (#4242)
This commit is contained in:
committed by
GitHub
parent
3eb0857906
commit
0cfdacdd28
@@ -97,6 +97,8 @@ public class Rules{
|
|||||||
public Team waveTeam = Team.crux;
|
public Team waveTeam = Team.crux;
|
||||||
/** name of the custom mode that this ruleset describes, or null. */
|
/** name of the custom mode that this ruleset describes, or null. */
|
||||||
public @Nullable String modeName;
|
public @Nullable String modeName;
|
||||||
|
/** Whether cores incinerate items when full, just like in the campaign. */
|
||||||
|
public boolean coreIncinerates = false;
|
||||||
/** special tags for additional info. */
|
/** special tags for additional info. */
|
||||||
public StringMap tags = new StringMap();
|
public StringMap tags = new StringMap();
|
||||||
|
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ public class CoreBlock extends StorageBlock{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean incinerate(){
|
public boolean incinerate(){
|
||||||
return state.isCampaign();
|
return state.isCampaign() || state.rules.coreIncinerates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user