roippi
Developer
Gave the dog hair pill a crack myself. Might have time to look at distention in a couple of days.
I didn't do anything to daily deeds (or UseItemEnqueuePanel) because I'm not sure if that's something people want. I personally think Daily Deeds are already pretty crowded.
Code:
Index: src/net/sourceforge/kolmafia/objectpool/ItemPool.java
===================================================================
--- src/net/sourceforge/kolmafia/objectpool/ItemPool.java (revision 9402)
+++ src/net/sourceforge/kolmafia/objectpool/ItemPool.java (working copy)
@@ -1245,6 +1245,7 @@
public static final int LUNAR_ISOTOPE = 5134;
public static final int HONEYPOT = 5145;
public static final int SPOOKY_LITTLE_GIRL = 5165;
+ public static final int SYNTHETIC_DOG_HAIR_PILL = 5167;
public static final int TRANSPORTER_TRANSPONDER = 5170;
public static final int RONALD_SHELTER_MAP = 5171;
public static final int GRIMACE_SHELTER_MAP = 5172;
Index: src/net/sourceforge/kolmafia/request/UseItemRequest.java
===================================================================
--- src/net/sourceforge/kolmafia/request/UseItemRequest.java (revision 9402)
+++ src/net/sourceforge/kolmafia/request/UseItemRequest.java (working copy)
@@ -430,7 +430,12 @@
case ItemPool.SPICE_MELANGE:
UseItemRequest.limiter = "daily limit";
return Preferences.getBoolean( "spiceMelangeUsed" ) ? 0 : 1;
+
+ case ItemPool.SYNTHETIC_DOG_HAIR_PILL:
+ UseItemRequest.limiter = "daily limit";
+ return Preferences.getBoolean( "syntheticDogHairPillUsed" ) ? 0 : 1;
+
case ItemPool.BURROWGRUB_HIVE:
UseItemRequest.limiter = "daily limit";
return Preferences.getBoolean( "burrowgrubHiveUsed" ) ? 0 : 1;
@@ -3182,6 +3187,23 @@
}
return;
+ case ItemPool.SYNTHETIC_DOG_HAIR_PILL:
+
+ //Your liver feels better! And quivers a bit.
+ if ( responseText.indexOf( "liver can't take any more abuse" ) != -1 )
+ {
+ Preferences.setBoolean( "syntheticDogHairPillUsed", true );
+ ResultProcessor.processResult( item );
+ }
+ else if ( responseText.indexOf( "quivers" ) != -1 )
+ {
+ KoLCharacter.setInebriety( Math.max( 0, KoLCharacter.getInebriety() - 1 ) );
+ Preferences.setBoolean( "syntheticDogHairPillUsed", true );
+ KoLCharacter.updateStatus();
+ ConcoctionDatabase.getUsables().sort();
+ }
+ return;
+
case ItemPool.MILK_OF_MAGNESIUM:
ConcoctionDatabase.getUsables().sort();
Index: src/net/sourceforge/kolmafia/KoLmafia.java
===================================================================
--- src/net/sourceforge/kolmafia/KoLmafia.java (revision 9402)
+++ src/net/sourceforge/kolmafia/KoLmafia.java (working copy)
@@ -898,6 +898,7 @@
Preferences.setBoolean( "spiceMelangeUsed", false );
Preferences.setInteger( "spookyPuttyCopiesMade", 0 );
Preferences.setBoolean( "styxPixieVisited", false );
+ Preferences.setBoolean( "syntheticDogHairPillUsed", false );
Preferences.setBoolean( "telescopeLookedHigh", false );
Preferences.setInteger( "tempuraSummons", 0 );
Preferences.setInteger( "timesRested", 0 );
Index: src/data/defaults.txt
===================================================================
--- src/data/defaults.txt (revision 9402)
+++ src/data/defaults.txt (working copy)
@@ -605,6 +605,7 @@
user sugarCounter4182 0
user sugarCounter4183 0
user sugarCounter4191 0
+user syntheticDogHairPillUsed false
user tavernLayout 0000000000000000000000000
user telescope1
user telescope2
I didn't do anything to daily deeds (or UseItemEnqueuePanel) because I'm not sure if that's something people want. I personally think Daily Deeds are already pretty crowded.