I am at the point in my game where I can send weapon data over the network. For example, the tank can either shoot the 100 mm gun or the 7.62 mm machine gun. Each can be modified based on officer abilities. For example, the officer can increase the damage of the 100 mm gun by 10% and the 7.62 mm machine gun by 30%.
So I have two options:
1.) Have the client calculate the damage based upon the weapon type and bonuses. Sends it over the network.
2.) Have the client just send an ID number for the weapon with any bonuses (For example, if the officer was present, it would send 1-1 [ID for weapon and ID for modifier]. Then have the server do a lookup and the math and execute the results (Check to see if it’s dead, etc).
Which way is better? How much should I trust the client? I want to store everything in a DB on server side and that would be very very difficult to do if I go with option 1. But, if I go with 2, the server will be spending more time calculating out these things rather then handling other requests.
Any thoughts? Ideas?
Thank you!