1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Equipment Fit -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Sun, 6 Sep 1998 09:28:31 &#45;0700 -->
<!--X-Message-Id: 199809061628.KAA03929@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Equipment Fit</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00968.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00970.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00975.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00962.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00969">Author</A>
&nbsp;|&nbsp;<A HREF="#00969">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00969">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Equipment Fit</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Equipment Fit</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Sun, 6 Sep 1998 10:28:04 -0600</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
[Hans-Henrik Staerfeldt:]

 &gt;  B) The fit is -30 for 30 days, until BOS-&gt;fit is 0, and
 &gt;     thus BOS-&gt;owner is set to 'Ackbar'. That assumes
 &gt;     that the "BOS-&gt;fit += 1" in reality meant "BOS-&gt;fit -= 1" :-)
 &gt;     .. decrasing the fit from 30 to 0 over a month.
 &gt;
 &gt;In any event, you'd need some _more parameters_ to implement this
 &gt;nice idea the way it was originally described. That was what i was 
 &gt;commenting. BOS-&gt;fit and BOS-&gt;owner isn't enough.

Allow me to jump in with some pseudocode:

    initialization:
	BOS-&gt;fit = 0; BOS-&gt;owner = NULL;

    while wearing:
	if (BOS-&gt;owner == NULL) {
	    BOS-&gt;owner = currentWearer;
	}
	if (BOS-&gt;owner == currentWearer) {
	    BOS-&gt;fit += 1;
	} else {
	    BOS-&gt;fit -= 1;
	    if (BOS-&gt;fit == 0) {
		BOS-&gt;owner = NULL;
	    }
	}

    to get the "fit" value:
	if (BOS-&gt;owner == currentWearer) {
	    return BOS-&gt;fit;
	} else {
	    return - BOS-&gt;fit;
	}

When Ackbar starts wearing the boots, he is not set as the owner of them.
"fit"-ness values can be negative, indicating a very poor fit. This
is what I deduced that Holly was suggesting.

-- 
Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00968.html">[MUD-Dev] Re: Equipment Fit</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00970.html">[MUD-Dev] Re: Equipment Fit</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00975.html">[MUD-Dev] (fwd) CODE RELEASE: [server] SlashMUD (MacOS mud server)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00962.html">[MUD-Dev] npc memory and reactions</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00969"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00969"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00994" HREF="msg00994.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 09 Sep 1998, 17:33 GMT
<UL>
<LI><strong><A NAME="00997" HREF="msg00997.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Wed 09 Sep 1998, 22:30 GMT
<UL>
<LI><strong><A NAME="01000" HREF="msg01000.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Thu 10 Sep 1998, 01:31 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00975" HREF="msg00975.html">[MUD-Dev] (fwd) CODE RELEASE: [server] SlashMUD (MacOS mud server)</A></strong>, 
J C Lawrence <a href="mailto:claw#greek,kanga.nu">claw#greek,kanga.nu</a>, Sun 06 Sep 1998, 22:04 GMT
<LI><strong><A NAME="00969" HREF="msg00969.html">[MUD-Dev] Re: Equipment Fit</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 06 Sep 1998, 16:28 GMT
<LI><strong><A NAME="00962" HREF="msg00962.html">[MUD-Dev] npc memory and reactions</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sat 05 Sep 1998, 14:02 GMT
<UL>
<LI><strong><A NAME="00963" HREF="msg00963.html">[MUD-Dev] Re: npc memory and reactions</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sat 05 Sep 1998, 14:41 GMT
<UL>
<LI><strong><A NAME="00964" HREF="msg00964.html">[MUD-Dev] Re: npc memory and reactions</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sat 05 Sep 1998, 16:29 GMT
</LI>
<LI><strong><A NAME="00972" HREF="msg00972.html">[MUD-Dev] Re: npc memory and reactions</A></strong>, 
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Sun 06 Sep 1998, 18:26 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>