New Content - Implemented Reusable combat items marked as such

Fluxxdog

Active member
Jick said:
July 09 - Item descriptions for reusable combat items now say (reusable) on them. To indicate that the combat item is reusable.
The following HTML is an example using the specter scepter description.
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>Item Description</title>
<link rel="stylesheet" type="text/css" href="/images/styles.css">
<style>
a.hand {
	cursor: pointer;
}
</style>
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
if (typeof defaultBind != 'undefined') { defaultBind(47, 2, chatFocus); defaultBind(190, 2, chatFocus);defaultBind(191, 2, chatFocus); defaultBind(47, 8, chatFocus);defaultBind(190, 8, chatFocus); defaultBind(191, 8, chatFocus); }</script><script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /></head>
<body>

<div id="description" class=small><center><img src="/images/itemimages/scepter.gif" height=30 width=30 alt="scepter"><br><a target=_blank href=http://kol.coldfront.net/thekolwiki/index.php/spectre_scepter><b>spectre scepter</b></a></center><p><blockquote>This is a smoky gray crystal rod, finely engraved with ancient glyphs and images of the four ancient gods of the Hidden City. It hums with magical power, and holding it makes you want to lay the smite down on some infidels.<br><br>Type: <b>combat item (reusable)</b><Br>Cannot be traded or discarded</blockquote><script type="text/javascript">
<!--
var resizetries = 0;
var fsckinresize;
setTimeout(fsckinresize = function ()  {
	var desch = document.getElementById('description').offsetHeight;
	if (desch < 100 && resizetries < 5) {
		setTimeout(fsckinresize, 100);
		resizetries++;
	}
	if (desch < 100) desch = 200; 
	//alert('resizing on try #' + resizetries);
	if (self.resizeTo && window.outerHeight) { 
		self.resizeTo(400, desch + (window.outerHeight - window.innerHeight) + 50); 
	}
	else if (self.resizeTo ) { self.resizeTo(400, desch+130); }
	else { window.innerHeight = newh; }
}, 100);
//-->
</script>
</div>
</body>
<script src="/onfocus.js"></script></html>
 
Revision 12311 handles this. When KoLmafia parses an item description (either from a new item found, or for the "checkitems" command), if it is combat (reusable), we mark it as such.

I ran checkitems and found 6 items that we did not mark as reusable that KoL says are reusable:

PADL phone
communications windchime

Those are actually only conditionally reusable, since you lose them some of the time. We handle that case in FightRequest.isItemConsumed.

samurai turtle

Wikipedia says it has a chance of disappearing on the 5th, sixth, or seventh use. That means it needs similar handling to make it go away only if it really goes away. Revision 12312 does that.

toy deathbot
tiny goth giant
strange goggles

I marked all of those as "combat reusable".

KoL marks some items as (reusable) that aren't, really:

Spooky Putty sheet
Rain-doh black box

Those are reusable - i.e., you don't lose them - only if you've used them enough already today. Before that, you lose them and they are replaced by a "monster" version of the same item. Again, we have special handling for those already and simply marking them "combat reusable" is incorrect.

KoL doesn't mark some things as reusable that we know are reusable:

molybdenum magnet
Zombo's empty eye

I don't think there's anything more to be done to support this.
 
Back
Top