Page 2 of 2

Re: Preferred target category

Posted: 26 Feb 2013, 18:02
by knorke
Forboding Angel wrote:
knorke wrote: I wanted to look at evos amorblubs but the first thing I saw was like this and I did not understand:
That's because you're looking in the completely wrong place:
https://code.google.com/p/evolutionrts/ ... ost.lua#86
No, that is where damage of weapons is set.
The sorting units into armorblubs is in armordefs.lua. And there I saw the posted lines. And it does not do what the comment says it does. And then I thought that is no good.
btw another:

Code: Select all

 -- put any unit that doesn't go in any other category in medium armor
table.insert(armorDefs.LIGHT, name)

Re: Preferred target category

Posted: 27 Feb 2013, 00:18
by Forboding Angel
Actually, sorting units into armor classes happens in the unitdefs.
https://code.google.com/p/evolutionrts/ ... nk3.lua#95

Damage types are also set in the unitdef
https://code.google.com/p/evolutionrts/ ... k3.lua#131


And damage percentages are set in weapondefs_post
https://code.google.com/p/evolutionrts/ ... ost.lua#86


armordefs.lua is irrelevant.

Re: Preferred target category

Posted: 27 Feb 2013, 01:47
by knorke
garfield, the only reason why customParams have an effect at all is because there is code that reads them:
armordefs.lua is irrelevant.
:regret:

Re: Preferred target category

Posted: 27 Feb 2013, 08:13
by Forboding Angel
Yes, that is correct.

You wanted the armor classes. In which case, armordefs is mostly irrelevant. It tells you there are 3 armortypes, but the interesting stuff happens in weapondefs_post, Odie.