red dragon + elephant = +22 moral?

Discuss anything related to warbarons.

red dragon + elephant = +22 moral?

Postby TalonThorn » Thu Jul 24, 2014 3:38 am

Is this a display bug or does the red dragon's moral bonus add to the elephant's open terrain moral bonus, giving units in open terrain a +22 moral bonus? That is what my combat preview display shows in the game.
TalonThorn
 
Posts: 3
Joined: Sat Mar 08, 2014 9:37 pm

Re: red dragon + elephant = +22 moral?

Postby KGB » Thu Jul 24, 2014 1:44 pm

They don't add.

What combat preview are you talking about?

KGB
KGB
 
Posts: 3030
Joined: Tue Feb 16, 2010 12:06 am

Re: red dragon + elephant = +22 moral?

Postby TalonThorn » Thu Jul 24, 2014 11:18 pm

The button that lets you preview the combat stats for various terrains, outside of combat.
TalonThorn
 
Posts: 3
Joined: Sat Mar 08, 2014 9:37 pm

Re: red dragon + elephant = +22 moral?

Postby KGB » Fri Jul 25, 2014 4:46 pm

Ah, I never used it before :)

You are right, it's just displaying all the bonus's in raw format. It's not showing how they would actually *be* in combat.

KGB
KGB
 
Posts: 3030
Joined: Tue Feb 16, 2010 12:06 am

Re: red dragon + elephant = +22 moral?

Postby Chazar » Wed Sep 24, 2014 2:14 pm

Why is there a seperate piece of code for computing the bonuses anyway? Seems like a strange design from a programmer's point of view.
Chazar
 
Posts: 670
Joined: Tue Feb 28, 2012 7:51 pm

Re: red dragon + elephant = +22 moral?

Postby SnotlinG » Wed Sep 24, 2014 8:09 pm

Chazar wrote:Why is there a seperate piece of code for computing the bonuses anyway? Seems like a strange design from a programmer's point of view.


The battle is calculated on the server, and the preview-window is calculated on the client. So its two diffrent programming languages :-)
Anyway, Ill try to take a look on the preview-window and see if it is working as intended.
SnotlinG
 
Posts: 2148
Joined: Sat Feb 13, 2010 12:42 am

Re: red dragon + elephant = +22 moral?

Postby Chazar » Thu Sep 25, 2014 11:18 am

That is actually a good answer. I thought the whole game was done in Javascript. May I ask what language you are using on the server?
Chazar
 
Posts: 670
Joined: Tue Feb 28, 2012 7:51 pm

Re: red dragon + elephant = +22 moral?

Postby piranha » Thu Sep 25, 2014 5:07 pm

PHP is used on the server
User avatar
piranha
Site Admin
 
Posts: 1188
Joined: Fri Feb 12, 2010 9:44 pm

Re: red dragon + elephant = +22 moral?

Postby KGB » Thu Sep 25, 2014 5:34 pm

What's your DB Engine again?

We are using C# routines with SQL Server.

KGB
KGB
 
Posts: 3030
Joined: Tue Feb 16, 2010 12:06 am

Re: red dragon + elephant = +22 moral?

Postby piranha » Thu Sep 25, 2014 5:54 pm

MySQL, PHP (no framework just our own), javascript in frontend with jquery. On the mobile I've used angularJS in the community frontend.

If I'd start another game project I'd look into using node.js with express on the server and mongoDB. Not sure I'd use angularJS or just handlebars.js and jquery in the front, I'd probably use famo.us as well to take advantage of GPUs for render performance. Underscore is also recommended for some nice functions that are missing in JS. I'd also take a closer look at meteor.js as a possible option to the MEAN stack (Mongo, Express, Angular, Node) which is great when you want to do realtime things.

Where do you work? What are you doing?
User avatar
piranha
Site Admin
 
Posts: 1188
Joined: Fri Feb 12, 2010 9:44 pm

Next

Return to Game discussion

Who is online

Users browsing this forum: No registered users and 14 guests

cron
Not able to open ./cache/data_global.php