Author Topic: Discount Unit Cost Before Production  (Read 1228 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Discount Unit Cost Before Production
« on: 29 September 2010, 23:22:17 »
As you all probably know, the discount costs are always taken off AFTER the unit has been produced (ie: Unit costing 10 gold with 50% discount would still cost 10 gold, but would give you back 5 gold after the production is done). This is impractical, and it would be nice to either have it actually taken off of the production cost or given an XML option to have it taken off before production (for Legacy support?).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

ChupaReaper

  • Guest
Re: Discount Unit Cost Before Production
« Reply #1 on: 29 September 2010, 23:24:21 »
Why not just decrease the cost in the first place or add an upgrade feature to effect the cost of things?

Zoythrus

  • Guest
Re: Discount Unit Cost Before Production
« Reply #2 on: 30 September 2010, 01:17:11 »
he means when you morph a unit into a discounted unit.

this would be useful

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Discount Unit Cost Before Production
« Reply #3 on: 1 October 2010, 04:38:44 »

Agreed, I'll add an option to apply the discount 'before' or (default) 'after' the morph,

Code: [Select]
   <discount value="75" apply="before" /> <!-- apply is "after" by default -->
Glest Advanced Engine - Code Monkey

Timeline | Downloads