v0.9.4: adjusted runestone recipes, all scrolls now produce 2 stones

This commit is contained in:
Evan Debenham 2021-07-28 22:47:16 -04:00
parent c0d064d91b
commit 630fbbb43f
2 changed files with 4 additions and 28 deletions

View File

@ -24,7 +24,7 @@ journal.document.alchemy_guide.title=Alchemy Guide
journal.document.alchemy_guide.potions.title=Creating Potions
journal.document.alchemy_guide.potions.body=Welcome to Practical Applications of Alchemy!\n\nThis book serves as a recipe reference for hobbyist alchemists and adventurers looking to get their hands dirty.\n\nWe will start with the most iconic alchemy recipe: Place any three seeds into an alchemy pot to brew a random potion!\n\nEvery seed has a potion counterpart, and the potion you create may relate to one of the seeds used. Using multiple of the same seed will increase the chance for this to occur.
journal.document.alchemy_guide.stones.title=Creating Runestones
journal.document.alchemy_guide.stones.body=Mixing a scroll into an alchemy pot will imbue its magic into two or three rocks within the pot. This creates runestones!
journal.document.alchemy_guide.stones.body=Mixing a scroll into an alchemy pot will imbue its magic into two rocks within the pot. This creates runestones!
journal.document.alchemy_guide.energy_food.title=Energy and Food
journal.document.alchemy_guide.energy_food.body=Some recipes require energy from the alchemy pot itself. Energy is used in recipes that produce more than the sum of their ingredients.\n\nNot all energy recipes are especially mystical however. These recipes more resemble traditional cooking than alchemy.
journal.document.alchemy_guide.bombs.title=Enhanced Bombs

View File

@ -283,43 +283,19 @@ public abstract class Scroll extends Item {
public static class ScrollToStone extends Recipe {
private static HashMap<Class<?extends Scroll>, Class<?extends Runestone>> stones = new HashMap<>();
private static HashMap<Class<?extends Scroll>, Integer> amnts = new HashMap<>();
static {
stones.put(ScrollOfIdentify.class, StoneOfIntuition.class);
amnts.put(ScrollOfIdentify.class, 3);
stones.put(ScrollOfLullaby.class, StoneOfDeepenedSleep.class);
amnts.put(ScrollOfLullaby.class, 3);
stones.put(ScrollOfMagicMapping.class, StoneOfClairvoyance.class);
amnts.put(ScrollOfMagicMapping.class, 3);
stones.put(ScrollOfMirrorImage.class, StoneOfFlock.class);
amnts.put(ScrollOfMirrorImage.class, 3);
stones.put(ScrollOfRetribution.class, StoneOfBlast.class);
amnts.put(ScrollOfRetribution.class, 2);
stones.put(ScrollOfRage.class, StoneOfAggression.class);
amnts.put(ScrollOfRage.class, 3);
stones.put(ScrollOfRecharging.class, StoneOfShock.class);
amnts.put(ScrollOfRecharging.class, 2);
stones.put(ScrollOfRemoveCurse.class, StoneOfDisarming.class);
amnts.put(ScrollOfRemoveCurse.class, 2);
stones.put(ScrollOfTeleportation.class, StoneOfBlink.class);
amnts.put(ScrollOfTeleportation.class, 2);
stones.put(ScrollOfTerror.class, StoneOfAffection.class);
amnts.put(ScrollOfTerror.class, 3);
stones.put(ScrollOfTransmutation.class, StoneOfAugmentation.class);
amnts.put(ScrollOfTransmutation.class, 2);
stones.put(ScrollOfUpgrade.class, StoneOfEnchantment.class);
amnts.put(ScrollOfUpgrade.class, 2);
}
@Override
@ -347,7 +323,7 @@ public abstract class Scroll extends Item {
s.quantity(s.quantity() - 1);
s.identify();
return Reflection.newInstance(stones.get(s.getClass())).quantity(amnts.get(s.getClass()));
return Reflection.newInstance(stones.get(s.getClass())).quantity(2);
}
@Override
@ -357,9 +333,9 @@ public abstract class Scroll extends Item {
Scroll s = (Scroll) ingredients.get(0);
if (!s.isKnown()){
return new Runestone.PlaceHolder();
return new Runestone.PlaceHolder().quantity(2);
} else {
return Reflection.newInstance(stones.get(s.getClass())).quantity(amnts.get(s.getClass()));
return Reflection.newInstance(stones.get(s.getClass())).quantity(2);
}
}
}