MemeMayhem / ModExamples

11 stars 3 forks source link

有什么函数能返回获取回合数 #69

Closed a3662981 closed 2 months ago

a3662981 commented 2 months ago

能否做到达到15/30回合后执行获得一个神器这样

fx013 commented 2 months ago

回合数可以由combat_unit.run_instance.wave获取 ,比如在wave=15战斗开始时获得神器:

 combat_unit:RegisterOnCombatStartCallback(name, function()
     if combat_unit.run_instance.wave == 15 then
         combat_unit:ApplyRelic("smile_face")
     end
 end)