• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

コミットメタ情報

リビジョンb2d979cda7d4a299c3dac2a6e1f1117affea17ec (tree)
日時2017-02-12 20:55:37
作者SUEHIRO <supersuehiro@user...>
コミッターSUEHIRO

ログメッセージ

振り向きなどを修正

変更サマリ

差分

--- a/ssz/char.ssz
+++ b/ssz/char.ssz
@@ -3237,7 +3237,7 @@ public &Char
32373237 public void furimuki()
32383238 {
32393239 if(`ctrl && `helperindex == 0){
3240- if(`trP2DistX()$.v.toF() >= 0.0) break;
3240+ if(`trDistX(.players.enemyNear(`=, 0, true))$.v.toF() >= 0.0) break;
32413241 branch{
32423242 cond `stVal.typ == .StTy::S:
32433243 `trChangeAnim(5);
@@ -4626,16 +4626,19 @@ public &Char
46264626 {
46274627 `setFacing(-`facing);
46284628 }
4629- public void trP2DistX()
4629+ public void trDistX(^`self c)
46304630 {
4631- ^`self e = `getP2();
4632- if(#e == 0){
4631+ if(#c == 0){
46334632 .v.setSF();
46344633 ret;
46354634 }
4636- float dist = (float)`facing * `distX(e<>=);
4635+ float dist = (float)`facing * `distX(c<>=);
46374636 .v.setF(`stMver0() == 1 ? dist : (float)(int)dist);
46384637 }
4638+ public void trP2DistX()
4639+ {
4640+ `trDistX(`getP2());
4641+ }
46394642 public void trP2DistY()
46404643 {
46414644 ^`self e = `getP2();
@@ -4675,12 +4678,7 @@ public &Char
46754678 public void trParentDistX()
46764679 {
46774680 `trParent();
4678- if(#.c == 0){
4679- .v.setSF();
4680- ret;
4681- }
4682- float dist = (float)`facing * `distX(.c<>=);
4683- .v.setF(`stMver0() == 1 ? dist : (float)(int)dist);
4681+ `trDistX(.c);
46844682 }
46854683 public void trParentDistY()
46864684 {
@@ -4741,20 +4739,11 @@ public &Char
47414739 public bool trPName(int no, ^/char name)
47424740 {:<-
47434741 if(no <= 0 || #.chars < no) ret false;
4744- void addSorted(%index sorted=, int c)
4745- {
4746- loop{index i = 0; while; do:
4747- if(
4748- (!.chars[c]<>~isHouchied() && .chars[sorted[i]]<>~isHouchied()) || (
4749- .chars[c]<>~isHouchied() == .chars[sorted[i]]<>~isHouchied()
4750- && #`distX(.chars[c]<><>=) < #`distX(.chars[sorted[i]]<><>=)))
4751- {
4752- .insIL(sorted=, i, c);
4753- ret;
4754- }
4755- i++;
4756- while i < #sorted:}
4757- sorted .= c;
4742+ if((no & 1) == 0){
4743+ ^`self e = .players.enemyNear(`=, (no >> 1) - 1, true);
4744+ ret
4745+ #e > 0 && !(e~isKO() && e~sf(.sfOVER))
4746+ && .s.equ(name, .cgi[e~playerno].nameLow);
47584747 }
47594748 int foo;
47604749 branch{
@@ -4765,32 +4754,10 @@ public &Char
47654754 else:
47664755 foo = ((no - 1) - 2) + (`playerno & 1);
47674756 }
4768- cond no == 2:
4769- {
4770- ^`self e = `getP2();
4771- ret #e > 0 && .s.equ(name, .cgi[e~playerno].nameLow);
4772- }
47734757 else:
47744758 foo = (no - 1) ^ (`playerno & 1);
4775- if((no & 1) == 0) loop{
4776- int i = foo & 1;
4777- %index sorted;
4778- while;
4779- do:
4780- if(#.chars[i] > 0) addSorted(sorted=, i);
4781- i += 2;
4782- while i < #.chars:
4783- if(#sorted <= foo >> 2) ret false;
4784- foo = sorted[foo >> 2];
4785- }
4786- }
4787- if(
4788- #.chars[foo] == 0
4789- || (no == 2 && .chars[foo]<>~isKO() && .chars[foo]<>~sf(.sfOVER)))
4790- {
4791- ret false;
47924759 }
4793- ret .s.equ(name, .cgi[foo].nameLow);
4760+ ret #.chars[foo] > 0 && .s.equ(name, .cgi[foo].nameLow);
47944761 }
47954762 public bool trAuthor(^/char name)
47964763 {