TempusMUD/Tempuscode — pull request #220 by origintempus (2013-01-06 19:47:47+00:00)
Title: Changed oset and mset to account for metric preferences and added commas...

Olc mset and oset changed to take into account metric preferences for mob height and weight, and object weight. Also modified do_stat_object to include metric preference and commas for object rent, cost, damage, maxdamage, and do_stat_character for weight and height.

More metric/imperial preference tweaks.
act.wizard.c
do_stat_object
do_stat_character
olc_mob.c
do_mob_mset
olc_obj.c
perform_oset

olc_obj.c

Changed oset to take into account player preferences of metric/imperial measure. Modified the limits to make more sense, as the new float for object weight made the number crazy high and such. This also allows for objects to be set for decimal amounts. I didn't feel it was necessary to separate the imperial measure into ounces, as I feel a decimal pound is still understandable. Maybe in the future we'll give that a go if it is necessary.

olc_mob.c

Changed mset for height and weight to take into account player preference of metric/imperial. For imperial on height, added 2 char arrays to handle chopping the numeric argument for height into 2 arguments, so that you can put in 8 6 to get 8foot 6inches. This also required a bit of an adjustment for the conversion rounding limitations on integers. Limits are based on the original limits for cm.

I didn't feel mob weight needed to be so precise, so it's much simpler.

act.wizard.c

Add metric/imperial player preference for height/weight in do_stat_obj and char.