MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
[MUD-Dev] Re: Equipment Fit
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
- Thread context:
- [MUD-Dev] Re: Equipment Fit, (continued)
[ Other Periods
| Other mailing lists
| Search
]