Autofight.qsrc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. # Autofight
  2. menu_off = 1
  3. if Formula = 0:Formula = 3
  4. $endurdin = {
  5. Ken = (musle[a] / 100) * Kus / 100
  6. if ken <= 0:ken = 1
  7. Kene = (musle[i] / 100) * Kuse / 100
  8. if kene <= 0:kene = 1
  9. KoefUder = rand(Uder * 20 / 100, Uder)
  10. KoefUderE = rand(Udere * 20 / 100, Udere)
  11. KoefBros = rand(Brosok * 20 / 100, Brosok)
  12. KoefBrosE = rand(Brosoke * 20 / 100, Brosoke)
  13. KoefProt = rand(Zash * 20 / 100, Zash)
  14. KoefProtE = rand(Zashe * 20 / 100, Zashe)
  15. }
  16. $uderdin = {
  17. Kus = 5
  18. Kuse = 10
  19. dynamic $endurdin
  20. endur -= ken
  21. endurE -= kene
  22. Aktiv = (strenW / 2) + agilW + rand(0, lustW) + KoefUder
  23. Aktiv = Aktiv * endur / endurMax
  24. Passiv = (((strenWE + (agilWE / 2)) * koefE) / 100) + rand (0, lustWE) + KoefProtE
  25. Passiv = Passiv * endurE / endurMaxE
  26. }
  27. $uderdinE = {
  28. Kus = 10
  29. Kuse = 5
  30. dynamic $endurdin
  31. endur -= ken
  32. endurE -= kene
  33. Aktiv = (strenWE / 2) + agilWE + rand(0, lustWE) + KoefUdere
  34. Aktiv = Aktiv * endurE / endurMaxE
  35. Passiv = (((strenW + (agilW / 2)) * koef) / 100) + rand(0, lustW) + KoefProt
  36. Passiv = Passiv * endur / endurMaxE
  37. }
  38. $brosdin = {
  39. Kus = 10
  40. Kuse = 10
  41. dynamic $endurdin
  42. endur -= ken
  43. endurE -= kene
  44. Aktiv = strenW + (agilW / 2) + rand(0, lustW) + KoefBros
  45. Aktiv = Aktiv * endur / endurMax
  46. Passiv = (((strenWE / 2) + agilWE) * koefE / 100) + rand(0, lustWE) + KoefProtE
  47. Passiv = Passiv * endurE / endurMaxE
  48. }
  49. $brosdinE = {
  50. Kus = 10
  51. Kuse = 10
  52. dynamic $endurdin
  53. endur -= ken
  54. endurE -= kene
  55. Aktiv = strenWE + (agilWE / 2) + rand(0, lustWE) + KoefBrosE
  56. Aktiv = Aktiv * endurE / endurMaxE
  57. Passiv = (((strenW / 2) + agilW) * koef / 100) + rand(0, lustW) + KoefProt
  58. Passiv = Passiv * endur / endurMax
  59. }
  60. point = 0
  61. pointE = 0
  62. $nameE = $nikname[i]
  63. $nameA = $nikname[a]
  64. strenW = musle[a] / 10
  65. strenWE = musle[i] / 10
  66. agilW = flex[a] / 10
  67. agilWE = flex[i] / 10
  68. lustMax = wipo[a]
  69. lustMaxE = wipo[i]
  70. lustW = lustMax
  71. lustWE = lustMaxe
  72. Brosok = Bteh[a] / 10
  73. BrosokE = Bteh[i] / 10
  74. Uder = Uteh[a] / 10
  75. Udere = Uteh[i] / 10
  76. Zash = Zteh[a] / 10
  77. Zashe = Zteh[i] / 10
  78. resultFight = 0
  79. endurMax = stamina[a] / 10
  80. endurMaxE = stamina[i] / 10
  81. endur = endurMax
  82. endurE = endurMaxE
  83. croonce = 0
  84. round = 1
  85. rMin = 8
  86. stoper = 0
  87. Ku = 0
  88. Kb = 0
  89. Kz = 0
  90. KuE =0
  91. KbE= 0
  92. KzE = 0
  93. if strenW > strenWE:
  94. point += 1
  95. lustW += 1
  96. crouch = 1
  97. elseif strenW < strenWE:
  98. pointE += 1
  99. lustWE += 1
  100. crouch = 0
  101. elseif strenW = strenWE:
  102. varrand = rand(0, 1)
  103. if varrand = 0:crouch = 1
  104. if varrand=1:crouch=0
  105. end
  106. :markFightCrouch
  107. stoper = 0
  108. if crouch = 1:
  109. enrand = rand(0, 1)
  110. arand = rand(0, 1)
  111. if arand = 0:
  112. endur -= 2
  113. if enrand = 0:
  114. pointE += 1
  115. jump 'markfight'
  116. elseif enrand = 1:
  117. point += 2
  118. endurE -= 1
  119. jump 'markfight1'
  120. end
  121. elseif arand = 1:
  122. endur -= 1
  123. if enrand = 0:
  124. point += 1
  125. jump 'markfight2'
  126. elseif enrand = 1:
  127. pointE += 1
  128. endurE -= 1
  129. jump 'markfight3'
  130. end
  131. end
  132. else
  133. enrand = rand(0, 1)
  134. arand = rand(0, 1)
  135. if arand = 0:
  136. if enrand = 0:
  137. point += 1
  138. endurE -= 2
  139. jump 'markfightE'
  140. elseif enrand = 1:
  141. pointE += 1
  142. endurE -= 1
  143. jump 'markfightE1'
  144. end
  145. elseif arand = 1:
  146. endur -= 1
  147. if enrand = 0:
  148. pointE += 2
  149. endurE -= 2
  150. jump 'markfightE2'
  151. elseif enrand = 1:
  152. point += 1
  153. endurE -= 1
  154. jump 'markfightE3'
  155. end
  156. end
  157. end
  158. :markfight
  159. koef = 100
  160. koefE = 90
  161. rMin -= 1
  162. stoper += 1
  163. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  164. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  165. if stoper < 3:
  166. if rMin > 0:
  167. arand = rand(0, 1)
  168. if arand = 0:
  169. dynamic $uderdin
  170. if Aktiv > Passiv:
  171. point += 1
  172. Ku += 1
  173. stoper = 0
  174. jump 'markfight2'
  175. elseif Aktiv < Passiv:
  176. pointE += 1
  177. KzE += 1
  178. stoper = 0
  179. jump 'markfight3'
  180. elseif Aktiv = Passiv:
  181. jump 'markfight'
  182. end
  183. elseif arand = 1:
  184. dynamic $brosdin
  185. if Aktiv > Passiv:
  186. point += 2
  187. lustW += 1
  188. Kb += 1
  189. stoper = 0
  190. jump 'markfight1'
  191. elseif Aktiv < Passiv:
  192. pointE += 1
  193. KzE += 1
  194. stoper = 0
  195. jump 'markfight3'
  196. elseif Aktiv = Passiv:
  197. jump 'markfight'
  198. end
  199. end
  200. else
  201. jump 'markRoundEnd'
  202. end
  203. elseif stoper >= 3:
  204. pointE += 1
  205. jump 'markRoundStop'
  206. end
  207. :markfight1
  208. koef = 100
  209. koefE = 85
  210. rMin -= 1
  211. stoper += 1
  212. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  213. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  214. if stoper < 3:
  215. if rMin > 0:
  216. dynamic $uderdin
  217. if Aktiv > Passiv:
  218. point += 1
  219. Ku += 1
  220. stoper = 0
  221. jump 'markfight2'
  222. elseif Aktiv < Passiv:
  223. pointE += 1
  224. KzE += 1
  225. stoper = 0
  226. jump 'markfight3'
  227. elseif Aktiv = Passiv:
  228. jump 'markfight1'
  229. end
  230. else
  231. jump 'markRoundEnd'
  232. end
  233. elseif stoper >= 3:
  234. pointE += 1
  235. jump 'markRoundStop'
  236. end
  237. :markfight2
  238. koef = 100
  239. koefE = 80
  240. lustE -= 1
  241. rMin -= 1
  242. stoper += 1
  243. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  244. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  245. if stoper < 3:
  246. if rMin > 0:
  247. dynamic $uderdin
  248. endurE -= 2
  249. if Aktiv >= Passiv:
  250. point += 1
  251. lustWE -= 1
  252. Ku += 1
  253. jump 'markfight2'
  254. elseif Aktiv < Passiv:
  255. pointE += 1
  256. KzE += 1
  257. stoper = 0
  258. jump 'markfight3'
  259. end
  260. else
  261. jump 'markRoundEnd'
  262. end
  263. elseif stoper >= 3:
  264. point += 3
  265. jump 'markRoundStop'
  266. end
  267. :markfight3
  268. koef = 100
  269. koefE = 100
  270. rMin -= 1
  271. stoper += 1
  272. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  273. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  274. if stoper < 3:
  275. if rMin > 0:
  276. arand = rand(0, 1)
  277. if arand = 0:
  278. dynamic $uderdin
  279. if Aktiv > Passiv:
  280. point += 1
  281. Ku += 1
  282. stoper = 0
  283. jump 'markfight2'
  284. elseif Aktiv <= Passiv:
  285. pointE += 1
  286. KzE += 1
  287. jump 'markRoundStop'
  288. end
  289. elseif arand = 1:
  290. dynamic $brosdin
  291. if Aktiv > Passiv:
  292. point += 2
  293. lustW += 1
  294. Kb += 1
  295. stoper = 0
  296. jump 'markfight1'
  297. elseif Aktiv <= Passiv:
  298. pointE += 1
  299. KzE += 1
  300. jump 'markRoundStop'
  301. end
  302. end
  303. else
  304. jump 'markRoundEnd'
  305. end
  306. elseif stoper >= 3:
  307. pointE += 1
  308. jump 'markRoundStop'
  309. end
  310. :markfightE
  311. koef = 90
  312. koefE = 100
  313. rMin -= 1
  314. stoper += 1
  315. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  316. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  317. if stoper < 3:
  318. if rMin > 0:
  319. deystrand = rand(0, 1)
  320. if deystrand = 0:
  321. dynamic $uderdinE
  322. if Aktiv > Passiv:
  323. pointE += 1
  324. KuE += 1
  325. stoper = 0
  326. jump 'markfightE1'
  327. elseif Aktiv < Passiv:
  328. point += 1
  329. Kz += 1
  330. stoper = 0
  331. jump 'markfightE3'
  332. elseif Aktiv = Passiv:
  333. jump 'markfightE'
  334. end
  335. elseif deystrand = 1:
  336. dynamic $brosdinE
  337. if Aktiv > Passiv:
  338. pointE += 2
  339. lustWE += 1
  340. KbE += 1
  341. stoper = 0
  342. jump 'markfightE2'
  343. elseif Aktiv < Passiv:
  344. point += 1
  345. Kz += 1
  346. stoper = 0
  347. jump 'markfightE3'
  348. elseif Aktiv = Passiv:
  349. jump 'markfightE'
  350. end
  351. end
  352. else
  353. jump 'markRoundEnd'
  354. end
  355. elseif stoper >= 3:
  356. point += 1
  357. jump 'markRoundStop'
  358. end
  359. :markfightE1
  360. koef = 80
  361. koefE = 100
  362. lust -= 1
  363. rMin -= 1
  364. stoper += 1
  365. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  366. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  367. if stoper < 3:
  368. if rMin > 0:
  369. dynamic $uderdinE
  370. endur -= 2
  371. if Aktiv >= Passiv:
  372. pointE += 1
  373. lustW -= 1
  374. KuE += 1
  375. jump 'markfightE1'
  376. elseif Aktiv < Passiv:
  377. point += 1
  378. Kz += 1
  379. stoper = 0
  380. jump 'markfightE3'
  381. end
  382. else
  383. jump 'markRoundEnd'
  384. end
  385. elseif stoper >= 3:
  386. pointE += 3
  387. jump 'markRoundStop'
  388. end
  389. :markfightE2
  390. koef = 85
  391. koefE = 100
  392. rMin -= 1
  393. stoper += 1
  394. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  395. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  396. if stoper < 3:
  397. if rMin > 0:
  398. dynamic $uderdinE
  399. if Aktiv > Passiv:
  400. pointE += 1
  401. KuE += 1
  402. stoper = 0
  403. jump 'markfightE1'
  404. elseif Aktiv < Passiv:
  405. point += 1
  406. Kz += 1
  407. stoper = 0
  408. jump 'markfightE3'
  409. elseif Aktiv = Passiv:
  410. jump 'markfightE2'
  411. end
  412. else
  413. jump 'markRoundEnd'
  414. end
  415. elseif stoper >= 3:
  416. point += 1
  417. jump 'markRoundStop'
  418. end
  419. :markfightE3
  420. koef = 100
  421. koefE = 100
  422. rMin -= 1
  423. stoper += 1
  424. if endur <= 0 or lustW <= 0:jump 'markSubLoss'
  425. if endurE <= 0 or lustWE <= 0:jump 'markSubWin'
  426. if stoper < 3:
  427. if rMin > 0:
  428. deystrand = rand(0 ,1)
  429. if deystrand = 0:
  430. dynamic $uderdinE
  431. if Aktiv > Passiv:
  432. pointE += 1
  433. KuE += 1
  434. stoper = 0
  435. jump 'markfightE1'
  436. elseif Aktiv <= Passiv:
  437. point += 1
  438. Kz += 1
  439. jump 'markRoundStop'
  440. end
  441. elseif deystrand = 1:
  442. dynamic $brosdinE
  443. if Aktiv > Passiv:
  444. pointE += 2
  445. lustWE += 1
  446. KbE += 1
  447. stoper = 0
  448. jump 'markfightE2'
  449. elseif Aktiv <= Passiv:
  450. point += 1
  451. Kz += 1
  452. jump 'markRoundStop'
  453. end
  454. end
  455. else
  456. jump 'markRoundEnd'
  457. end
  458. elseif stoper >= 3:
  459. point += 1
  460. jump 'markRoundStop'
  461. end
  462. :markRoundStop
  463. stoper = 0
  464. if crouch = 1 and croonce = 0:crouch = 0 & croonce = 1
  465. if crouch = 0 and croonce = 0:crouch = 1 & croonce = 1
  466. croonce = 0
  467. jump 'markFightCrouch'
  468. :markSubWin
  469. resultFight = 0
  470. jump 'markEndFight'
  471. :markSubLoss
  472. resultFight = 4
  473. jump ' markEndFight'
  474. :markRoundEnd
  475. round += 1
  476. rMin = 8
  477. stoper = 0
  478. if round = Formula + 1:
  479. if point > pointE:
  480. resultFight = 1
  481. elseif point < pointE:
  482. resultFight=3
  483. elseif point = pointE:
  484. resultFight=2
  485. end
  486. jump 'markEndFight'
  487. elseif round < Formula + 1:
  488. endur += lustW * 25 / 100
  489. endurE += lustWE *25 / 100
  490. if crouch = 1 and croonce = 0:crouch = 0 & croonce = 1
  491. if crouch = 0 and croonce = 0:crouch = 1 & croonce = 1
  492. croonce = 0
  493. jump 'markFightCrouch'
  494. end
  495. :markEndFight
  496. if NoView = 0:'<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>>'
  497. if NoView = 0:'<<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>>'
  498. if NoView = 0:'<<point>> points <<$nameA>> <<Ku>> Activism in the attacks retention, <<Kb>> Activism in the attacks throws, <<Kz>> successful defenses.'
  499. if NoView = 0:'<<pointE>> points <<$nameE>> <<KuE>> Activism in the attacks retention, <<KbE>> Activism in the attacks throws, <<KzE>> successful defenses.'
  500. if resultFight = 0:
  501. wipo[a] += 2
  502. wipo[i] -= 1
  503. rating[a] += 2
  504. rating[i] -= 5
  505. strand = rand(0, 2)
  506. if strand = 0:musle[a] += 10
  507. if strand = 1:flex[a] += 10
  508. if strand = 2:stamina[a] += 10
  509. tehrand = rand(0, 2)
  510. if tehrand = 0:Bteh[a] += 10
  511. if tehrand = 1:Uteh[a] += 10
  512. if tehrand = 2:Zteh[a] += 10
  513. if NoView = 0:'<b><<$nameA>> won surrender</b>'
  514. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=green>wins by submission</font>'
  515. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=red>defeat surrender</font>'
  516. win[a] += 1
  517. SubWin[a] += 1
  518. loss[i] += 1
  519. SubLoss[i] += 1
  520. elseif resultFight = 1:
  521. wipo[a] += 1
  522. rating[a] += 1
  523. rating[i] -= 3
  524. strand = rand(0, 2)
  525. if strand = 0:musle[a] += 10
  526. if strand = 1:flex[a] += 10
  527. if strand = 2:stamina[a] += 10
  528. tehrand = rand(0, 2)
  529. if tehrand = 0:Bteh[a] += 10
  530. if tehrand = 1:Uteh[a] += 10
  531. if tehrand = 2:Zteh[a] += 10
  532. if NoView = 0:'<b><<$nameA>> won</b>'
  533. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=green>victory</font>'
  534. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=red>defeat</font>'
  535. win[a] += 1
  536. loss[i] += 1
  537. elseif resultFight = 2:
  538. rating[a] -= 1
  539. rating[i] -= 1
  540. if NoView = 0:'<b>The result of the fight a draw</b>'
  541. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=black>draw</font>'
  542. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=black>draw</font>'
  543. draw[a] += 1
  544. draw[i] += 1
  545. elseif resultFight = 3:
  546. wipo[i] += 1
  547. rating[a] -= 3
  548. rating[i] += 1
  549. strand = rand(0, 2)
  550. if strand = 0:musle[i] += 10
  551. if strand = 1:flex[i] += 10
  552. if strand = 2:stamina[i] += 10
  553. tehrand = rand(0, 2)
  554. if tehrand = 0:Bteh[i] += 10
  555. if tehrand = 1:Uteh[i] += 10
  556. if tehrand = 2:Zteh[i] += 10
  557. if NoView = 0:'<b><<$nameE>> won</b>'
  558. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=red>defeat</font>'
  559. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=green>victory</font>'
  560. win[i] += 1
  561. loss[a] += 1
  562. elseif resultFight = 4:
  563. wipo[i] += 2
  564. wipo[a] -= 1
  565. rating[a] -= 5
  566. rating[i] += 2
  567. strand = rand(0, 2)
  568. if strand = 0:musle[i] += 10
  569. if strand = 1:flex[i] += 10
  570. if strand = 2:stamina[i] += 10
  571. tehrand = rand(0, 2)
  572. if tehrand = 0:Bteh[i] += 10
  573. if tehrand = 1:Uteh[i] += 10
  574. if tehrand = 2:Zteh[i] += 10
  575. if NoView = 0:'<b><<$nameE>> won surrender</b>'
  576. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=red>defeat surrender</font>'
  577. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color=green>wins by submission</font>'
  578. win[i] += 1
  579. SubWin[i] += 1
  580. loss[a] += 1
  581. SubLoss[a] += 1
  582. end
  583. --- Autofight ---------------------------------