Go で書き直した Ikemen
Revision | d94f7e3f632e50a80e45bb027386cffdfad4074c (tree) |
---|---|
Time | 2019-10-26 21:11:56 |
Author | neatunsou <sisiy4excite@gmai...> |
Commiter | neatunsou |
アーケードのステージ選択のミスを修正
Helperのownpalの処理を少し修正
@@ -409,6 +409,8 @@ function select.f_selectStage() | ||
409 | 409 | elseif main.t_selChars[t_p2Selected[1].cel + 1].stage ~= nil then |
410 | 410 | stageNo = math.random(1, #main.t_selChars[t_p2Selected[1].cel + 1].stage) |
411 | 411 | stageNo = main.t_selChars[t_p2Selected[1].cel + 1].stage[stageNo] |
412 | + else | |
413 | + stageNo = main.t_includeStage[math.random(1, #main.t_includeStage)] | |
412 | 414 | end |
413 | 415 | if stageNo == 0 then |
414 | 416 | stageNo = main.t_includeStage[math.random(1, #main.t_includeStage)] |
@@ -2945,13 +2945,13 @@ func (c *Char) helperInit(h *Char, st int32, pt PosType, x, y float32, | ||
2945 | 2945 | h.vel = [2]float32{} |
2946 | 2946 | if ownpal { |
2947 | 2947 | h.palfx = newPalFX() |
2948 | + tmp := c.getPalfx().remap | |
2949 | + h.palfx.remap = make([]int, len(tmp)) | |
2950 | + copy(h.palfx.remap, tmp) | |
2951 | + c.forceRemapPal(h.palfx, rp) | |
2948 | 2952 | } else { |
2949 | 2953 | h.palfx = c.palfx |
2950 | 2954 | } |
2951 | - tmp := c.getPalfx().remap | |
2952 | - h.palfx.remap = make([]int, len(tmp)) | |
2953 | - copy(h.palfx.remap, tmp) | |
2954 | - c.forceRemapPal(h.palfx, rp) | |
2955 | 2955 | if extmap { |
2956 | 2956 | for key, value := range c.mapArray { |
2957 | 2957 | h.mapArray[key] = value |