mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 22:42:41 -08:00
Allow for core incineration via rules (#4242)
This commit is contained in:
parent
3eb0857906
commit
0cfdacdd28
2 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ public class CoreBlock extends StorageBlock{
|
|||
}
|
||||
|
||||
public boolean incinerate(){
|
||||
return state.isCampaign();
|
||||
return state.isCampaign() || state.rules.coreIncinerates;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue