Skip to content

Commit

Permalink
Fixing a few renderer issues with a new db
Browse files Browse the repository at this point in the history
  • Loading branch information
U-Poseidon\Devon authored and U-Poseidon\Devon committed Feb 26, 2012
1 parent a48866e commit bb8d629
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified assets/psrd.db
Binary file not shown.
Expand Up @@ -166,7 +166,7 @@ public Cursor getItemDetails(String sectionId) {
List<String> args = new ArrayList<String>();
args.add(sectionId);
StringBuffer sb = new StringBuffer();
sb.append("SELECT item_details_id, slot, cl, price, weight, requirements, skill, ");
sb.append("SELECT aura, slot, cl, price, weight, requirements, skill, ");
sb.append(" cr_increase, cost");
sb.append(" FROM item_details");
sb.append(" WHERE section_id = ?");
Expand All @@ -192,7 +192,7 @@ public Cursor getTrapDetails(String sectionId) {
List<String> args = new ArrayList<String>();
args.add(sectionId);
StringBuffer sb = new StringBuffer();
sb.append("SELECT trap_details_id, trap_type, perception, disable_device, duration, effect, trigger, reset");
sb.append("SELECT cr, trap_type, perception, disable_device, duration, effect, trigger, reset");
sb.append(" FROM trap_details");
sb.append(" WHERE section_id = ?");
String sql = sb.toString();
Expand Down
Expand Up @@ -16,7 +16,7 @@
public class PsrdDbHelper extends SQLiteOpenHelper {
private static String DB_PATH = "/data/data/org.evilsoft.pathfinder.reference/databases/";
private static String DB_NAME = "psrd.db";
private static final Integer VERSION = 55555;
private static final Integer VERSION = 55556;
private SQLiteDatabase db;
private final Context context;

Expand Down
Expand Up @@ -23,7 +23,7 @@ public String renderDetails() {
//1: slot, 2: cl, 3: price, 4: weight, 5: requirements, 6: skill, 7: cr_increase, 8: cost
boolean has_next = curs.moveToFirst();
if (has_next) {
sb.append(addField("Aura", ""));
sb.append(addField("Aura", curs.getString(1), false));
sb.append(addField("CL", curs.getString(2)));
sb.append(addField("Slot", curs.getString(1), false));
sb.append(addField("Price", curs.getString(3), false));
Expand Down

0 comments on commit bb8d629

Please sign in to comment.