piranha wrote:With B4 I changed the caps from B3. The swarm bonus made it difficult to cap at 45 so in B4 the cap is low 5 and high 75.
Positive bonus cap is 30, negative is 25. There is no cap at 45.
So then in step 1 where you calculate the unit strengths you just let the value go from 5-75 now due to swarming? I don't see any problem with that. Certainly the final number for a unit after every bonus is taken into account would need to be as high as 75 to handle bless+swarm+30 stack bonus+terrain bonus.
I think a stack bonus range of -5,25 is probably better than -25,30. Certainly on the negative side, -30 is too much. Not sure if +30 over +25 is going to be game breaking so I don't think you need to address that one as much as the negative value.
piranha wrote:Difficult question, I think adding terrain bonuses after is good. It will help the weakest units but units like spiders will still be the same.
I realize that we might have to make caps but are there any other ways to deal with it that you can think of?
Yeah the order in which you do things and force everything into a valid range (5,75) is important obviously. I suggest using the order that War2/DLR and then range checking after each step. That will make sure situational bonus's like Terrain and Anti-Air don't get removed on weaker units by a negative stack bonus.
Of course it still won't do anything for -10 Fear removing 10 city wall bonus. For that you'll have to specifically code caps between the stack bonus's.
piranha wrote:About items, when you put an item on the unit it will increase their base value. But items will stack even when a hero bonus is maxed so if you have max leadership 20 and find a +2 leadership ring you will have 22.
Cool. But what about Negate from Archons. Does it affect items? I don't think it should.
KGB