Welcome to the Builder Academy

Question Damage

More
11 Feb 2018 20:27 - 11 Feb 2018 20:44 #7586 by JTP
Damage was created by JTP
Acording to my dice Calculator, Then:
int dam;

dam = dice(GET_LEVEL(ch),4);
dam += GET_LEVEL(ch);

Should give around 229 damage at level 65, yet i only do about 100.

Any ideas ?
Last edit: 11 Feb 2018 20:44 by JTP.

Please Log in or Create an account to join the conversation.

More
11 Feb 2018 21:14 #7587 by cunning
Replied by cunning on topic Damage
There is a LOT more to damage then what you have listed. You need to follow the logic. If you notice we have a CAP of 100 listed in damage().

This is direct from damage()
/* Set the maximum damage per round and subtract the hit points */
dam = MAX(MIN(dam, 100), 0);
GET_HIT(victim) -= dam;


This is not including what is in void hit() at the bottom of that procedure.

Please Log in or Create an account to join the conversation.

More
11 Feb 2018 21:22 #7588 by JTP
Replied by JTP on topic Damage
Ahh good point on the cap, had totalt forgotten about that.

Please Log in or Create an account to join the conversation.

Time to create page: 0.198 seconds