v0.2.3: artifact tweaks

This commit is contained in:
Evan Debenham 2014-12-10 17:29:33 -05:00
parent 6a1a90022e
commit 77d7d9f3df
3 changed files with 13 additions and 13 deletions

View File

@ -21,7 +21,7 @@ import java.util.Collections;
* Created by debenhame on 24/11/2014. * Created by debenhame on 24/11/2014.
*/ */
public class AlchemistsToolkit extends Artifact { public class AlchemistsToolkit extends Artifact {
//TODO: core functionality finished, but really rough. Look to improve code quality and add general polish. TEST. //TODO: sprite
{ {
name = "Alchemists Toolkit"; name = "Alchemists Toolkit";
@ -34,7 +34,6 @@ public class AlchemistsToolkit extends Artifact {
public static final String AC_BREW = "BREW"; public static final String AC_BREW = "BREW";
//arrays used in containing potion collections for mix logic. //arrays used in containing potion collections for mix logic.
//strings are used so that different potions of the same class are considered equal
public final ArrayList<String> combination = new ArrayList<String>(); public final ArrayList<String> combination = new ArrayList<String>();
public ArrayList<String> curGuess = new ArrayList<String>(); public ArrayList<String> curGuess = new ArrayList<String>();
public ArrayList<String> bstGuess = new ArrayList<String>(); public ArrayList<String> bstGuess = new ArrayList<String>();

View File

@ -22,7 +22,7 @@ import java.util.ArrayList;
* Created by debenhame on 01/12/2014. * Created by debenhame on 01/12/2014.
*/ */
public class TimekeepersHourglass extends Artifact { public class TimekeepersHourglass extends Artifact {
//TODO: string, effect implementation. //TODO: display logic, sprites.
private static final String TXT_HGLASS = "Timekeeper's Hourglass"; private static final String TXT_HGLASS = "Timekeeper's Hourglass";
private static final String TXT_STASIS = "Put myself in stasis"; private static final String TXT_STASIS = "Put myself in stasis";
@ -65,12 +65,14 @@ public class TimekeepersHourglass extends Artifact {
@Override @Override
protected void onSelect(int index) { protected void onSelect(int index) {
if (index == 0){ if (index == 0){
GLog.i("WIP"); GLog.i("Everything seems to fly around you.");
GameScene.flash( 0xFFFFFF );
Sample.INSTANCE.play( Assets.SND_TELEPORT );
activeBuff = new timeStasis(); activeBuff = new timeStasis();
activeBuff.attachTo(Dungeon.hero); activeBuff.attachTo(Dungeon.hero);
} else if (index == 1){ } else if (index == 1){
GLog.i("everything around you slows to a halt."); GLog.i("everything around you suddenly freezes.");
GameScene.flash( 0xFFFFFF ); GameScene.flash( 0xFFFFFF );
Sample.INSTANCE.play( Assets.SND_TELEPORT ); Sample.INSTANCE.play( Assets.SND_TELEPORT );
@ -160,7 +162,7 @@ public class TimekeepersHourglass extends Artifact {
} }
public class timeStasis extends ArtifactBuff { public class timeStasis extends ArtifactBuff {
//todo: add visuals, test //todo: add visuals
@Override @Override

View File

@ -27,7 +27,6 @@ import java.util.Collections;
* Created by debenhame on 26/11/2014. * Created by debenhame on 26/11/2014.
*/ */
public class UnstableSpellbook extends Artifact { public class UnstableSpellbook extends Artifact {
//TODO: add display logic
{ {
name = "Unstable Spellbook"; name = "Unstable Spellbook";
@ -144,18 +143,18 @@ public class UnstableSpellbook extends Artifact {
desc += "\n\n"; desc += "\n\n";
//all simple names for scrolls begin with ScrollOf, so picking a specific substring index works well here. }
if (level < levelCap) if (level < levelCap)
if (scrolls.size() > 1) if (scrolls.size() > 1)
desc += "The book's index points to some pages which are blank. " + desc += "The book's index points to some pages which are blank. " +
"Those pages are listed as: " + scrolls.get(0).substring(8) + " and " "Those pages are listed as: " + scrolls.get(0) + " and "
+ scrolls.get(1).substring(8) + ". Perhaps adding to the book will increase its power"; + scrolls.get(1) + ". Perhaps adding to the book will increase its power";
else else
desc += "The book's index has one remaining blank page. " + desc += "The book's index has one remaining blank page. " +
"That page is listed as " + scrolls.get(0).substring(8) + "."; "That page is listed as " + scrolls.get(0) + ".";
else else
desc += "The book's index is full, it doesn't look like you can add anything more to it."; desc += "The book's index is full, it doesn't look like you can add anything more to it.";
}
return desc; return desc;
} }