logoHourGlass
Battle.SetGainMode

Battle.SetGainMode

Battle.SetGainMode(BattleIndex, Mod)

函數功能

設置戰鬥獎勵模式,如獎勵經驗、獎勵DP。

參數說明

  • BattleIndex數值型 戰鬥index,爲Encount、PVE或PVP函數的返回值。
  • Mod數值型 戰鬥獎勵類型,具體參照戰鬥類型常量。

返回值

1爲成功,其他失敗。