[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

7158: [MUD-Dev] Re: Equipment Fit

[Full Header] [Plain Text]
From: "Matthew R. Sheahan" <chaos@crystal.palace.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Sun, 6 Sep 1998 12:33:11 -0400 (EDT)
References: [1]
Organization: Kanga.Nu
Hans-Henrik Staerfeldt propagated a meme to the effect of:
> Well, i agree, its a great idea :-), but the implementation notes does
> not describe a workable system. Ofcause it might be just a sign error :-/
> Since the description only includes one 'fit' parameter, that parameter is

> In any event, you'd need some _more parameters_ to implement this
> nice idea the way it was originally described. That was what i was=20
> commenting. BOS->fit and BOS->owner isn't enough.

this is incorrect.  these two values are sufficient to the implementation.

int query_effective_fit(object who) {
	if(who->name() == owner)
	  return fit;
	else
	  return -fit;
}

void update_fit(object who) {
	if(!fit)
	  owner = who->name();
	else if(who->name() == owner)
	  fit++;
	else
	  fit--;
}

								chiaroscuro