.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #24  
Old November 23rd, 2003, 05:36 AM

Jasper Jasper is offline
Major
 
Join Date: Sep 2003
Location: Oregon
Posts: 1,139
Thanks: 0
Thanked 0 Times in 0 Posts
Jasper is on a distinguished road
Default Re: CherryMod Thread

Quote:
Originally posted by Kristoffer O:
When we associated encumbrance and defence with armors instead of units we had already made some hundred units (that was early in Dom I). It was a chore to go through them all. Resources was not remade at the same time and now it feels kind of owerwhelming to think about.
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.
__________________
brass-golem.com
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.