v0.2.3e: added backend support for multiple quickslots (needs testing!)

This commit is contained in:
Evan Debenham
2015-01-19 12:01:04 -05:00
parent 72cbc3440f
commit e53c6b678f
9 changed files with 150 additions and 61 deletions
@@ -136,9 +136,10 @@ public enum HeroClass {
hero.STR = hero.STR + 1;
(hero.belongings.weapon = new ShortSword()).identify();
new Dart( 8 ).identify().collect();
Dart darts = new Dart( 8 );
darts.identify().collect();
Dungeon.quickslot = Dart.class;
hero.belongings.quickslot.setSlot(0, darts);
new PotionOfStrength().setKnown();
}
@@ -149,7 +150,7 @@ public enum HeroClass {
WandOfMagicMissile wand = new WandOfMagicMissile();
wand.identify().collect();
Dungeon.quickslot = wand;
hero.belongings.quickslot.setSlot(0, wand);
new ScrollOfIdentify().setKnown();
}
@@ -161,10 +162,11 @@ public enum HeroClass {
(hero.belongings.misc1 = cloak).identify();
hero.belongings.misc1.activate( hero );
new Dart( 8 ).identify().collect();
Dart darts = new Dart( 8 );
darts.identify().collect();
Dungeon.quickslot = cloak;
hero.belongings.quickslot.setSlot(0, cloak);
hero.belongings.quickslot.setSlot(1, darts);
new ScrollOfMagicMapping().setKnown();
}
@@ -177,7 +179,7 @@ public enum HeroClass {
Boomerang boomerang = new Boomerang();
boomerang.identify().collect();
Dungeon.quickslot = boomerang;
hero.belongings.quickslot.setSlot(0, boomerang);
}
public String title() {