View Single Post
  #26  
Old November 23rd, 2003, 10:37 AM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: CherryMod Thread

Quote:
Originally posted by Jasper:
From a programming perspective it should be simple... Add a resources field to all equipment, add a method to units to to calculate resource cost based on carried equipment. Compare the computed values with the current resource cost for all units. If you like what you see, refactor to call the resource method rather than the hard coded resource variable, and then remove remove all the now extraneous unit resources. Perhaps keep resources around as a variable on units, so you can it to the resource sum if you want to varry resource cost aside from equipment.
Many units have resource costs not only dependent on the equipment. The resources of Jotund and other non human beings are arbitrarily altered to compensate for size and other materials. We would have to go through all units. Not difficult but very boring and some bugs would not discovered. On the other hand we have a merry group of people here that wouldn't mind pointing out misses.

The Minotaur Lord was one of the units that were missed in the previous encumbrance change. I believe you remember him.
__________________
www.illwinter.com
Reply With Quote