• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

Revision160 (tree)
Time2017-01-19 00:56:28
Authorxops-mikan

Log Message

人が被弾した際のダメージ計算に、ランダム補正を加えるよう改良。

Change Summary

Incremental Difference

--- trunk/object.cpp (revision 159)
+++ trunk/object.cpp (revision 160)
@@ -830,7 +830,7 @@
830830 void human::HitBulletHead(int attacks)
831831 {
832832 if( Invincible == false ){
833- hp -= (int)((float)attacks * HUMAN_DAMAGE_HEAD);
833+ hp -= (int)((float)attacks * HUMAN_DAMAGE_HEAD) + GetRand(16);
834834 }
835835 ReactionGunsightErrorRange = 15;
836836 }
@@ -840,7 +840,7 @@
840840 void human::HitBulletUp(int attacks)
841841 {
842842 if( Invincible == false ){
843- hp -= (int)((float)attacks * HUMAN_DAMAGE_UP);
843+ hp -= (int)((float)attacks * HUMAN_DAMAGE_UP) + GetRand(8);
844844 }
845845 ReactionGunsightErrorRange = 12;
846846 }
@@ -850,7 +850,7 @@
850850 void human::HitBulletLeg(int attacks)
851851 {
852852 if( Invincible == false ){
853- hp -= (int)((float)attacks * HUMAN_DAMAGE_LEG);
853+ hp -= (int)((float)attacks * HUMAN_DAMAGE_LEG) + GetRand(6);
854854 }
855855 ReactionGunsightErrorRange = 8;
856856 }