Add config option to treat passive creatures as allies
This commit is contained in:
@@ -158,6 +158,8 @@ public final class Settings {
|
||||
public boolean teleportThroughUnbreakableBlocks = false;
|
||||
/** <b>[Server-only]</b> Whether to allow players to damage their designated allies using magic. */
|
||||
public FriendlyFire friendlyFire = FriendlyFire.ALL;
|
||||
/** <b>[Server-only]</b> Whether passive mobs should count as allies, i.e. they should not be targeted by minions, lightning chaining, etc. */
|
||||
public boolean passiveMobsAreAllies = false;
|
||||
/** <b>[Server-only]</b> Whether to allow players to disarm other players using the telekinesis spell. */
|
||||
public boolean telekineticDisarmament = true;
|
||||
/** <b>[Server-only]</b> Whether summoned creatures can revenge attack their caster if their caster attacks them. */
|
||||
@@ -578,6 +580,14 @@ public final class Settings {
|
||||
friendlyFire = FriendlyFire.fromName(property.getString());
|
||||
propOrder.add(property.getName());
|
||||
|
||||
property = config.get(DIFFICULTY_CATEGORY, "passiveMobsAreAllies", true,
|
||||
"Whether passive mobs should count as allies, i.e. they should not be targeted by minions, lightning chaining, etc.");
|
||||
property.setLanguageKey("config." + Wizardry.MODID + ".passive_mobs_are_allies");
|
||||
Wizardry.proxy.setToNamedBooleanEntry(property);
|
||||
property.setRequiresWorldRestart(false);
|
||||
passiveMobsAreAllies = property.getBoolean();
|
||||
propOrder.add(property.getName());
|
||||
|
||||
property = config.get(DIFFICULTY_CATEGORY, "minionRevengeTargeting", true,
|
||||
"Whether summoned creatures can revenge attack their owner if their owner attacks them.");
|
||||
property.setLanguageKey("config." + Wizardry.MODID + ".minion_revenge_targeting");
|
||||
|
||||
Reference in New Issue
Block a user