### Eclipse Workspace Patch 1.0
#P kolmafia
Index: src/net/sourceforge/kolmafia/request/UseItemRequest.java
===================================================================
--- src/net/sourceforge/kolmafia/request/UseItemRequest.java (revision 9830)
+++ src/net/sourceforge/kolmafia/request/UseItemRequest.java (working copy)
@@ -3900,6 +3900,19 @@
// inv_use.php?whichitem=3902&checked=1&pwd
return;
+
+ case ItemPool.HYPERINFLATED_SEAL_LUNG:
+ //You inhale mightily from the lungs. Take that, Bill Clinton!
+ //You don't think your lungs can handle another one of those today
+ if(responseText.indexOf( "inhale mightily" ) == -1)
+ {
+ UseItemRequest.lastUpdate = "You don't think your lungs can handle another one of those today.";
+ KoLmafia.updateDisplay( KoLConstants.ERROR_STATE, UseItemRequest.lastUpdate );
+ ResultProcessor.processResult( item );
+ }
+ // doesn't matter what the response is, single use, so cannot use another whether last succeeded or failed
+ Preferences.setBoolean("_canUse3935", false);
+ return;
case ItemPool.SEAL_IRON_INGOT:
Index: src/data/defaults.txt
===================================================================
--- src/data/defaults.txt (revision 9830)
+++ src/data/defaults.txt (working copy)
@@ -678,6 +678,7 @@
user _brickoFights 0
user _cameraUsed false
user _candySummons 0
+user _canUse3935 true
user _carboLoaded false
user _companionshipCasts 0
user _chipBags 0
Index: src/net/sourceforge/kolmafia/swingui/MaximizerFrame.java
===================================================================
--- src/net/sourceforge/kolmafia/swingui/MaximizerFrame.java (revision 9830)
+++ src/net/sourceforge/kolmafia/swingui/MaximizerFrame.java (working copy)
@@ -850,6 +850,24 @@
continue;
}
+ // check whether the item has been limited by daily usage count
+ boolean ShouldIgnoreItem = false;
+ switch ( item.getItemId() )
+ {
+ case ItemPool.HYPERINFLATED_SEAL_LUNG:
+ if (!Preferences.getBoolean("_canUse" + item.getItemId()))
+ {
+ ShouldIgnoreItem = true;
+ }
+ break;
+ default:
+ break;
+ }
+ if ( ShouldIgnoreItem ) {
+ continue;
+ }
+
+
int full = ItemDatabase.getFullness( iname );
if ( full > 0 &&
KoLCharacter.getFullness() + full > KoLCharacter.getFullnessLimit() )
Index: src/net/sourceforge/kolmafia/objectpool/ItemPool.java
===================================================================
--- src/net/sourceforge/kolmafia/objectpool/ItemPool.java (revision 9830)
+++ src/net/sourceforge/kolmafia/objectpool/ItemPool.java (working copy)
@@ -955,6 +955,7 @@
public static final int TURTLEMAIL_BITS = 3919;
public static final int TURTLING_ROD = 3927;
public static final int SEAL_IRON_INGOT = 3932;
+ public static final int HYPERINFLATED_SEAL_LUNG = 3935;
public static final int VIP_LOUNGE_KEY = 3947;
public static final int STUFFED_CHEST = 3949;
public static final int STUFFED_KEY = 3950;