()
| 36 | } |
| 37 | |
| 38 | public static void setToDefault() { |
| 39 | Effects ef; |
| 40 | String[] list = {"none", "unitSpawn", "unitControl", "unitDespawn", "unitSpirit", "itemTransfer", "pointBeam", "lightning", "unitWreck", "rocketSmoke", |
| 41 | "rocketSmokeLarge", "fireSmoke", "melting", "wet", "muddy", "oily", "dropItem", "impactcloud", "unitShieldBreak", "coreLand"}; |
| 42 | |
| 43 | effects.each(e -> e.disabled = false); |
| 44 | for (String name : list) { |
| 45 | ef = getByName(name); |
| 46 | if (ef != null) ef.disabled = true; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | public static Seq<Effects> copy(boolean withAdmin, boolean withDisabled) { |
| 51 | return withAdmin && withDisabled ? effects |
no test coverage detected