Compare commits

...

4 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 91e75ee7f1 Clarify that singleUseSpellBooks config does not affect scrolls
Co-authored-by: WinDanesz <31292708+WinDanesz@users.noreply.github.com>
2025-11-02 00:10:00 +00:00
copilot-swe-agent[bot] 1d80c5a447 Initial analysis of spell book consumption feature
Co-authored-by: WinDanesz <31292708+WinDanesz@users.noreply.github.com>
2025-11-02 00:08:10 +00:00
copilot-swe-agent[bot] 9906b3e154 Initial plan 2025-11-02 00:04:59 +00:00
WinDanesz 20b53596e2 fix: Forfeit sounds are properly registered for add-on forfeits 2025-10-22 23:50:04 +02:00
3 changed files with 3 additions and 3 deletions
Vendored Regular → Executable
View File
@@ -207,7 +207,7 @@ public final class Settings {
/** <b>[Server-only]</b> Whether damage should be registered with the old system (wizardry_magic/indirect_wizardry_magic) prefixed damage with the elements like
* necromancy_indirect_wizardry_magic, necromancy_wizardry_magic*/
public boolean damageTypePerElement = false;
/** <b>[Server-only]</b> Whether spell books are consumed when they are bound to a wand.*/
/** <b>[Server-only]</b> Whether spell books are consumed when they are bound to a wand. Does not affect scrolls.*/
public boolean singleUseSpellBooks = false;
/** <b>[Server-only]</b> Whether to prevent binding the same spell to a wand multiple times*/
public boolean preventBindingSameSpellTwiceToWands = false;
@@ -723,7 +723,7 @@ public final class Settings {
propOrder.add(property.getName());
property = config.get(GAMEPLAY_CATEGORY, "singleUseSpellBooks", false,
"Whether spell books are consumed when they are bound to a wand.");
"Whether spell books are consumed when they are bound to a wand. This does not affect scrolls, which cannot be placed in the arcane workbench.");
property.setLanguageKey("config." + Wizardry.MODID + ".single_use_spell_books");
Wizardry.proxy.setToNamedBooleanEntry(property);
singleUseSpellBooks = property.getBoolean();
@@ -78,7 +78,7 @@ public abstract class Forfeit {
public Forfeit(ResourceLocation name){
this.name = name;
this.sound = WizardrySounds.createSound("forfeit." + name.getPath());
this.sound = WizardrySounds.createSound(name.getNamespace(), "forfeit." + name.getPath());
}
public abstract void apply(World world, EntityPlayer player);