• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxobjective-ccocoa誰得c#qtrubygamebathyscaphephpgui翻訳windowspythoncomegattwittertestframeworkbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Go で書き直した Ikemen


Commit MetaInfo

Revision659447c367aeee77b5ffe49d248566691e8bfd29 (tree)
Time2019-01-12 08:28:04
AuthorShinLucho <shinlucho@gmai...>
CommiterShinLucho

Log Message

Explod random displacement changed

Change Summary

Incremental Difference

--- a/src/bytecode.go
+++ b/src/bytecode.go
@@ -2441,10 +2441,10 @@ func (sc explod) Run(c *Char, _ []int32) bool {
24412441 e.offset[1] = exp[1].evalF(c) * lclscround
24422442 }
24432443 case explod_random:
2444- rndx := exp[0].evalF(c) * lclscround
2444+ rndx := exp[0].evalF(c) * lclscround * 0.5
24452445 e.offset[0] += RandF(-rndx, rndx)
24462446 if len(exp) > 1 {
2447- rndy := exp[1].evalF(c) * lclscround
2447+ rndy := exp[1].evalF(c) * lclscround * 0.5
24482448 e.offset[1] += RandF(-rndy, rndy)
24492449 }
24502450 case explod_postype: