[MUD-Dev] Re: Equipment Fit
Matthew R. Sheahan
chaos at crystal.palace.net
Sun Sep 6 12:33:11 CEST 1998
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
More information about the mud-dev-archive
mailing list