Go で書き直した Ikemen
Revision | 7152feea98e141b5079e4382e6cf991a45abc22d (tree) |
---|---|
Time | 2019-01-26 08:31:47 |
Author | suehiro <supersuehiro@user...> |
Commiter | suehiro |
Explodのrandomを修正
@@ -2442,10 +2442,10 @@ func (sc explod) Run(c *Char, _ []int32) bool { | ||
2442 | 2442 | } |
2443 | 2443 | case explod_random: |
2444 | 2444 | rndx := exp[0].evalF(c) * lclscround |
2445 | - e.offset[0] += RandF(-rndx, rndx) | |
2445 | + e.offset[0] += RandF(-rndx, rndx-2) * .5 | |
2446 | 2446 | if len(exp) > 1 { |
2447 | 2447 | rndy := exp[1].evalF(c) * lclscround |
2448 | - e.offset[1] += RandF(-rndy, rndy) | |
2448 | + e.offset[1] += RandF(-rndy, rndy-2) * .5 | |
2449 | 2449 | } |
2450 | 2450 | case explod_postype: |
2451 | 2451 | e.postype = PosType(exp[0].evalI(c)) |