• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

無人機動兵器ダンジョン探索ゲーム JAVAベース


Commit MetaInfo

Revisão43 (tree)
Hora2015-07-24 17:35:48
Autormanjihq

Mensagem de Log

敵に接触したときの処理を障害物に接触した時と同様にした
被弾タイマーが1少なかったため被弾状態にならないケースがあったのを修正

Mudança Sumário

Diff

--- CarnageHack2/trunk/src/CarnageHack/Oke.java (revision 42)
+++ CarnageHack2/trunk/src/CarnageHack/Oke.java (revision 43)
@@ -815,19 +815,18 @@
815815 //hit oke!
816816 x = org_x;
817817 y = org_y;
818- subx = 0;
819- suby = 0;
820818 if (status == STATUS_FIGHT) {
821819 //hit punch to target
822- int firepower
823- = 100 - hardware.get_armor().get_armor();
820+ int firepower = 100
821+ - hardware.get_armor().get_armor();
824822 if (firepower <= 0) {
825823 firepower = 1;
826824 }
827825 firepower *= 10;
828- target.dec_hp(firepower, this, DAMAGE_FIGHT);
826+ target.dec_hp(firepower, this,
827+ DAMAGE_FIGHT);
828+ break;
829829 }
830- break;
831830 } else if (status == STATUS_STAIRS) {
832831 if (updown_stairs_task(dungeon) == true) {
833832 deltax = 0;
@@ -990,7 +989,7 @@
990989 lastattacker = p;
991990 lastdamage = reason;
992991 status = STATUS_DAMAGED;
993- ntimer = n / 50 + 1;
992+ ntimer = n / 50 + 2;
994993 deltax = CHutil.sin(deg + 180);
995994 deltay = -CHutil.cos(deg + 180);
996995 }