• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修订版36cb696b4d5ec3f4099812062d379d1783dad229 (tree)
时间2017-01-28 21:00:28
作者SUEHIRO <supersuehiro@user...>
CommiterSUEHIRO

Log Message

オートガードを修正

更改概述

差异

--- a/ssz/char.ssz
+++ b/ssz/char.ssz
@@ -1188,7 +1188,7 @@ const int ATP =
11881188 || hit.reversal_attr > 0
11891189 ? (int)-1 : 1);
11901190 }
1191- public int setHb(&.Hitdef hit=, bool guard, bool combo, int absdamage=)
1191+ public void setHb(&.Hitdef hit=, bool guard, bool combo, int absdamage=)
11921192 {
11931193 bool cmb = combo && !`hb.guarded;
11941194 bool fall = `hb.fallf;
@@ -1227,7 +1227,7 @@ const int ATP =
12271227 }
12281228 absdamage = hit.guarddamage;
12291229 `hb.hitcount = hc;
1230- ret 2 * (`hb.typ == 0 || hit.reversal_attr > 0 ? (int)-1 : 1);
1230+ ret;
12311231 }
12321232 `hb.hitshaketime = .m.max!int?(0, hit.shaketime);
12331233 `hb.slidetime = hit.ground_slidetime;
@@ -1259,7 +1259,6 @@ const int ATP =
12591259 `hb.hitcount = cmb ? hc+1 : 1;
12601260 `hb.fallcount = fc;
12611261 `hb.fallf |= fall;
1262- ret 1 * (`hb.typ == 0 || hit.reversal_attr > 0 ? (int)-1 : 1);
12631262 }
12641263 }
12651264 const index iLIFE = 10;
@@ -5833,6 +5832,17 @@ public void PlayerList!&Char?::clsn(&.Char pyr=, bool pro)
58335832 bool guard =
58345833 (pro != 0 || !by.ls(.lsUNGUARDABLE)) && `pyr.sf(.sfGUARD)
58355834 && (!`pyr.ls(.lsGETHIT) || `pyr.stVal.hb.guarded);
5835+ if(
5836+ guard && .com.autoguard[`pyr.playerno]
5837+ && `pyr.acttmp > 0 && !`pyr.ls(.lsGETHIT)
5838+ && (`pyr.stVal.typ == .StTy::S || `pyr.stVal.typ == .StTy::C)
5839+ && ((int)`pyr.stVal.typ&hit.guardflag) == 0) branch
5840+ {
5841+ cond ((int).StTy::S&hit.guardflag) != 0 && !`pyr.ls(.lsNOSTANDGUARD):
5842+ `pyr.stVal.typ = .StTy::S;
5843+ cond ((int).StTy::C&hit.guardflag) != 0 && !`pyr.ls(.lsNOCROUCHGUARD):
5844+ `pyr.stVal.typ = .StTy::C;
5845+ }
58365846 hitting = `pyr.stVal.hitCheck(hit=, guard);
58375847 bool p2s = false;
58385848 {
@@ -5884,17 +5894,6 @@ public void PlayerList!&Char?::clsn(&.Char pyr=, bool pro)
58845894 int absdamage = 0;
58855895 branch{
58865896 cond hbset:
5887- if(
5888- guard && .com.autoguard[`pyr.playerno]
5889- && `pyr.acttmp > 0 && !`pyr.ls(.lsGETHIT)
5890- && (`pyr.stVal.typ == .StTy::S || `pyr.stVal.typ == .StTy::C)
5891- && ((int)`pyr.stVal.typ&hit.guardflag) == 0) branch
5892- {
5893- cond ((int).StTy::S&hit.guardflag) != 0 && !`pyr.ls(.lsNOSTANDGUARD):
5894- `pyr.stVal.typ = .StTy::S;
5895- cond ((int).StTy::C&hit.guardflag) != 0 && !`pyr.ls(.lsNOCROUCHGUARD):
5896- `pyr.stVal.typ = .StTy::C;
5897- }
58985897 `pyr.stVal.setHb(
58995898 hit=, guard, `pyr.stVal.mov == .MovTy::H || `pyr.ls(.lsGETHIT),
59005899 absdamage=);