• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

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

Go で書き直した Ikemen


Commit MetaInfo

Revision7152feea98e141b5079e4382e6cf991a45abc22d (tree)
Time2019-01-26 08:31:47
Authorsuehiro <supersuehiro@user...>
Commitersuehiro

Log Message

Explodのrandomを修正

Change Summary

Incremental Difference

--- a/src/bytecode.go
+++ b/src/bytecode.go
@@ -2442,10 +2442,10 @@ func (sc explod) Run(c *Char, _ []int32) bool {
24422442 }
24432443 case explod_random:
24442444 rndx := exp[0].evalF(c) * lclscround
2445- e.offset[0] += RandF(-rndx, rndx)
2445+ e.offset[0] += RandF(-rndx, rndx-2) * .5
24462446 if len(exp) > 1 {
24472447 rndy := exp[1].evalF(c) * lclscround
2448- e.offset[1] += RandF(-rndy, rndy)
2448+ e.offset[1] += RandF(-rndy, rndy-2) * .5
24492449 }
24502450 case explod_postype:
24512451 e.postype = PosType(exp[0].evalI(c))