Go で書き直した Ikemen
Revisão | 659447c367aeee77b5ffe49d248566691e8bfd29 (tree) |
---|---|
Hora | 2019-01-12 08:28:04 |
Autor | ShinLucho <shinlucho@gmai...> |
Commiter | ShinLucho |
Explod random displacement changed
@@ -2441,10 +2441,10 @@ func (sc explod) Run(c *Char, _ []int32) bool { | ||
2441 | 2441 | e.offset[1] = exp[1].evalF(c) * lclscround |
2442 | 2442 | } |
2443 | 2443 | case explod_random: |
2444 | - rndx := exp[0].evalF(c) * lclscround | |
2444 | + rndx := exp[0].evalF(c) * lclscround * 0.5 | |
2445 | 2445 | e.offset[0] += RandF(-rndx, rndx) |
2446 | 2446 | if len(exp) > 1 { |
2447 | - rndy := exp[1].evalF(c) * lclscround | |
2447 | + rndy := exp[1].evalF(c) * lclscround * 0.5 | |
2448 | 2448 | e.offset[1] += RandF(-rndy, rndy) |
2449 | 2449 | } |
2450 | 2450 | case explod_postype: |