fix: 修正效果474参数索引错误
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -12,10 +12,10 @@ type Effect474 struct {
|
|||||||
|
|
||||||
func (e *Effect474) OnSkill() bool {
|
func (e *Effect474) OnSkill() bool {
|
||||||
if e.IsFirst() { // 先出手
|
if e.IsFirst() { // 先出手
|
||||||
chance := e.Args()[0].IntPart()
|
chance := e.Args()[1].IntPart()
|
||||||
success, _, _ := e.Input.Player.Roll(int(chance), 100)
|
success, _, _ := e.Input.Player.Roll(int(chance), 100)
|
||||||
if success {
|
if success {
|
||||||
effectType := int8(e.Args()[1].IntPart()) // XX类型
|
effectType := int8(e.Args()[0].IntPart()) // XX类型
|
||||||
effectValue := int8(e.Args()[2].IntPart()) // 等级+n
|
effectValue := int8(e.Args()[2].IntPart()) // 等级+n
|
||||||
|
|
||||||
e.Ctx().Our.SetProp(e.Ctx().Our, effectType, effectValue)
|
e.Ctx().Our.SetProp(e.Ctx().Our, effectType, effectValue)
|
||||||
|
|||||||
Reference in New Issue
Block a user