Allow for core incineration via rules (#4242)

This commit is contained in:
Patrick 'Quezler' Mounier 2021-01-03 22:48:25 +01:00 committed by GitHub
parent 3eb0857906
commit 0cfdacdd28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -97,6 +97,8 @@ public class Rules{
public Team waveTeam = Team.crux;
/** name of the custom mode that this ruleset describes, or null. */
public @Nullable String modeName;
/** Whether cores incinerate items when full, just like in the campaign. */
public boolean coreIncinerates = false;
/** special tags for additional info. */
public StringMap tags = new StringMap();

View file

@ -319,7 +319,7 @@ public class CoreBlock extends StorageBlock{
}
public boolean incinerate(){
return state.isCampaign();
return state.isCampaign() || state.rules.coreIncinerates;
}
@Override