-
Notifications
You must be signed in to change notification settings - Fork 186
/
main.lua
2144 lines (2053 loc) · 120 KB
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
require 'engine'
require 'shared'
require 'arena'
require 'mainmenu'
require 'buy_screen'
require 'objects'
require 'player'
require 'enemies'
require 'media'
function init()
shared_init()
input:bind('move_left', {'a', 'left', 'dpleft', 'm1'})
input:bind('move_right', {'d', 'e', 's', 'right', 'dpright', 'm2'})
input:bind('enter', {'space', 'return', 'fleft', 'fdown', 'fright'})
local s = {tags = {sfx}}
artificer1 = Sound('458586__inspectorj__ui-mechanical-notification-01-fx.ogg', s)
explosion1 = Sound('Explosion Grenade_04.ogg', s)
mine1 = Sound('Weapon Swap 2.ogg', s)
level_up1 = Sound('Buff 4.ogg', s)
unlock1 = Sound('Unlock 3.ogg', s)
gambler1 = Sound('Collect 5.ogg', s)
usurer1 = Sound('Shadow Punch 2.ogg', s)
orb1 = Sound('Collect 2.ogg', s)
gold1 = Sound('Collect 5.ogg', s)
gold2 = Sound('Coins - Gears - Slot.ogg', s)
psychic1 = Sound('Magical Impact 13.ogg', s)
fire1 = Sound('Fire bolt 3.ogg', s)
fire2 = Sound('Fire bolt 5.ogg', s)
fire3 = Sound('Fire bolt 10.ogg', s)
earth1 = Sound('Earth Bolt 1.ogg', s)
earth2 = Sound('Earth Bolt 14.ogg', s)
earth3 = Sound('Earth Bolt 20.ogg', s)
illusion1 = Sound('Buff 5.ogg', s)
thunder1 = Sound('399656__bajko__sfx-thunder-blast.ogg', s)
flagellant1 = Sound('Whipping Horse 3.ogg', s)
bard2 = Sound('376532__womb-affliction__flute-trill.ogg', s)
arcane2 = Sound('Magical Impact 12.ogg', s)
frost1 = Sound('Frost Bolt 20.ogg', s)
arcane1 = Sound('Magical Impact 26.ogg', s)
pyro1 = Sound('Fire bolt 5.ogg', s)
pyro2 = Sound('Explosion Fireworks_01.ogg', s)
dot1 = Sound('Magical Swoosh 18.ogg', s)
gun_kata1 = Sound('Pistol Shot_07.ogg', s)
gun_kata2 = Sound('Pistol Shot_08.ogg', s)
dual_gunner1 = Sound('Revolver Shot_07.ogg', s)
dual_gunner2 = Sound('Revolver Shot_08.ogg', s)
ui_hover1 = Sound('bamboo_hit_by_lord.ogg', s)
ui_switch1 = Sound('Switch.ogg', s)
ui_switch2 = Sound('Switch 3.ogg', s)
ui_transition1 = Sound('Wind Bolt 8.ogg', s)
ui_transition2 = Sound('Wind Bolt 12.ogg', s)
headbutt1 = Sound('Wind Bolt 14.ogg', s)
critter1 = Sound('Critters eating 2.ogg', s)
critter2 = Sound('Crickets Chirping 4.ogg', s)
critter3 = Sound('Popping bloody Sac 1.ogg', s)
force1 = Sound('Magical Impact 18.ogg', s)
error1 = Sound('Error 2.ogg', s)
coins1 = Sound('Coins 7.ogg', s)
coins2 = Sound('Coins 8.ogg', s)
coins3 = Sound('Coins 9.ogg', s)
shoot1 = Sound('Shooting Projectile (Classic) 11.ogg', s)
archer1 = Sound('Releasing Bow String 1.ogg', s)
wizard1 = Sound('Wind Bolt 20.ogg', s)
swordsman1 = Sound('Heavy sword woosh 1.ogg', s)
swordsman2 = Sound('Heavy sword woosh 19.ogg', s)
scout1 = Sound('Throwing Knife (Thrown) 3.ogg', s)
scout2 = Sound('Throwing Knife (Thrown) 4.ogg', s)
arrow_hit_wall1 = Sound('Arrow Impact wood 3.ogg', s)
arrow_hit_wall2 = Sound('Arrow Impact wood 1.ogg', s)
hit1 = Sound('Player Takes Damage 17.ogg', s)
hit2 = Sound('Body Head (Headshot) 1.ogg', s)
hit3 = Sound('Kick 16_1.ogg', s)
hit4 = Sound('Kick 16_2.ogg', s)
proj_hit_wall1 = Sound('Player Takes Damage 2.ogg', s)
enemy_die1 = Sound('Bloody punches 7.ogg', s)
enemy_die2 = Sound('Bloody punches 10.ogg', s)
magic_area1 = Sound('Fire bolt 10.ogg', s)
magic_hit1 = Sound('Shadow Punch 1.ogg', s)
magic_die1 = Sound('Magical Impact 27.ogg', s)
knife_hit_wall1 = Sound('Shield Impacts Sword 1.ogg', s)
blade_hit1 = Sound('Sword impact (Flesh) 2.ogg', s)
player_hit1 = Sound('Body Fall 2.ogg', s)
player_hit2 = Sound('Body Fall 18.ogg', s)
player_hit_wall1 = Sound('Wood Heavy 5.ogg', s)
pop1 = Sound('Pop sounds 10.ogg', s)
pop2 = Sound('467951__benzix2__ui-button-click.ogg', s)
pop3 = Sound('258269__jcallison__mouth-pop.ogg', s)
confirm1 = Sound('80921__justinbw__buttonchime02up.ogg', s)
heal1 = Sound('Buff 3.ogg', s)
spawn1 = Sound('Buff 13.ogg', s)
buff1 = Sound('Buff 14.ogg', s)
spawn_mark1 = Sound('Bonus 2.ogg', s)
spawn_mark2 = Sound('Bonus.ogg', s)
alert1 = Sound('Click.ogg', s)
elementor1 = Sound('Wind Bolt 18.ogg', s)
saboteur_hit1 = Sound('Explosion Flesh_01.ogg', s)
saboteur_hit2 = Sound('Explosion Flesh_02.ogg', s)
saboteur1 = Sound('Male Jump 1.ogg', s)
saboteur2 = Sound('Male Jump 2.ogg', s)
saboteur3 = Sound('Male Jump 3.ogg', s)
spark1 = Sound('Spark 1.ogg', s)
spark2 = Sound('Spark 2.ogg', s)
spark3 = Sound('Spark 3.ogg', s)
stormweaver1 = Sound('Buff 8.ogg', s)
cannoneer1 = Sound('Cannon shots 1.ogg', s)
cannoneer2 = Sound('Cannon shots 7.ogg', s)
cannon_hit_wall1 = Sound('Cannon impact sounds (Hitting ship) 4.ogg', s)
pet1 = Sound('Wolf barks 5.ogg', s)
turret1 = Sound('Sci Fi Machine Gun 7.ogg', s)
turret2 = Sound('Sniper Shot_09.ogg', s)
turret_hit_wall1 = Sound('Concrete 6.ogg', s)
turret_hit_wall2 = Sound('Concrete 7.ogg', s)
turret_deploy = Sound('321215__hybrid-v__sci-fi-weapons-deploy.ogg', s)
rogue_crit1 = Sound('Dagger Stab (Flesh) 4.ogg', s)
rogue_crit2 = Sound('Sword hits another sword 6.ogg', s)
song1 = Sound('Kubbi - Ember - 01 Pathfinder.ogg', {tags = {music}})
song2 = Sound('Kubbi - Ember - 02 Ember.ogg', {tags = {music}})
song3 = Sound('Kubbi - Ember - 03 Firelight.ogg', {tags = {music}})
song4 = Sound('Kubbi - Ember - 04 Cascade.ogg', {tags = {music}})
song5 = Sound('Kubbi - Ember - 05 Compass.ogg', {tags = {music}})
death_song = Sound('Kubbi - Ember - 09 Formed by Glaciers.ogg', {tags = {music}})
lock_image = Image('lock')
speed_booster_elite = Image('speed_booster_elite')
exploder_elite = Image('exploder_elite')
swarmer_elite = Image('swarmer_elite')
forcer_elite = Image('forcer_elite')
cluster_elite = Image('cluster_elite')
warrior = Image('warrior')
ranger = Image('ranger')
healer = Image('healer')
mage = Image('mage')
rogue = Image('rogue')
nuker = Image('nuker')
conjurer = Image('conjurer')
enchanter = Image('enchanter')
psyker = Image('psyker')
curser = Image('curser')
forcer = Image('forcer')
swarmer = Image('swarmer')
voider = Image('voider')
sorcerer = Image('sorcerer')
mercenary = Image('mercenary')
explorer = Image('explorer')
star = Image('star')
arrow = Image('arrow')
centipede = Image('centipede')
ouroboros_technique_r = Image('ouroboros_technique_r')
ouroboros_technique_l = Image('ouroboros_technique_l')
amplify = Image('amplify')
resonance = Image('resonance')
ballista = Image('ballista')
call_of_the_void = Image('call_of_the_void')
crucio = Image('crucio')
speed_3 = Image('speed_3')
damage_4 = Image('damage_4')
shoot_5 = Image('shoot_5')
death_6 = Image('death_6')
lasting_7 = Image('lasting_7')
defensive_stance = Image('defensive_stance')
offensive_stance = Image('offensive_stance')
kinetic_bomb = Image('kinetic_bomb')
porcupine_technique = Image('porcupine_technique')
last_stand = Image('last_stand')
seeping = Image('seeping')
deceleration = Image('deceleration')
annihilation = Image('annihilation')
malediction = Image('malediction')
hextouch = Image('hextouch')
whispers_of_doom = Image('whispers_of_doom')
tremor = Image('tremor')
heavy_impact = Image('heavy_impact')
fracture = Image('fracture')
meat_shield = Image('meat_shield')
hive = Image('hive')
baneling_burst = Image('baneling_burst')
blunt_arrow = Image('blunt_arrow')
explosive_arrow = Image('explosive_arrow')
divine_machine_arrow = Image('divine_machine_arrow')
chronomancy = Image('chronomancy')
awakening = Image('awakening')
divine_punishment = Image('divine_punishment')
assassination = Image('assassination')
flying_daggers = Image('flying_daggers')
ultimatum = Image('ultimatum')
magnify = Image('magnify')
echo_barrage = Image('echo_barrage')
unleash = Image('unleash')
reinforce = Image('reinforce')
payback = Image('payback')
enchanted = Image('enchanted')
freezing_field = Image('freezing_field')
burning_field = Image('burning_field')
gravity_field = Image('gravity_field')
magnetism = Image('magnetism')
insurance = Image('insurance')
dividends = Image('dividends')
berserking = Image('berserking')
unwavering_stance = Image('unwavering_stance')
unrelenting_stance = Image('unrelenting_stance')
blessing = Image('blessing')
haste = Image('haste')
divine_barrage = Image('divine_barrage')
orbitism = Image('orbitism')
psyker_orbs = Image('psyker_orbs')
psychosense = Image('psychosense')
psychosink = Image('psychosink')
rearm = Image('rearm')
taunt = Image('taunt')
construct_instability = Image('construct_instability')
intimidation = Image('intimidation')
vulnerability = Image('vulnerability')
temporal_chains = Image('temporal_chains')
ceremonial_dagger = Image('ceremonial_dagger')
homing_barrage = Image('homing_barrage')
critical_strike = Image('critical_strike')
noxious_strike = Image('noxious_strike')
infesting_strike = Image('infesting_strike')
kinetic_strike = Image('kinetic_strike')
burning_strike = Image('burning_strike')
lucky_strike = Image('lucky_strike')
healing_strike = Image('healing_strike')
stunning_strike = Image('stunning_strike')
silencing_strike = Image('silencing_strike')
warping_shots = Image('warping_shots')
culling_strike = Image('culling_strike')
lightning_strike = Image('lightning_strike')
psycholeak = Image('psycholeak')
divine_blessing = Image('divine_blessing')
hardening = Image('hardening')
class_colors = {
['warrior'] = yellow[0],
['ranger'] = green[0],
['healer'] = green[0],
['conjurer'] = orange[0],
['mage'] = blue[0],
['nuker'] = red[0],
['rogue'] = red[0],
['enchanter'] = blue[0],
['psyker'] = fg[0],
['curser'] = purple[0],
['forcer'] = yellow[0],
['swarmer'] = orange[0],
['voider'] = purple[0],
['sorcerer'] = blue2[0],
['mercenary'] = yellow2[0],
['explorer'] = fg[0],
}
class_color_strings = {
['warrior'] = 'yellow',
['ranger'] = 'green',
['healer'] = 'green',
['conjurer'] = 'orange',
['mage'] = 'blue',
['nuker'] = 'red',
['rogue'] = 'red',
['enchanter'] = 'blue',
['psyker'] = 'fg',
['curser'] = 'purple',
['forcer'] = 'yellow',
['swarmer'] = 'orange',
['voider'] = 'purple',
['sorcerer'] = 'blue2',
['mercenary'] = 'yellow2',
['explorer'] = 'fg',
}
character_names = {
['vagrant'] = 'Vagrant',
['swordsman'] = 'Swordsman',
['wizard'] = 'Wizard',
['magician'] = 'Magician',
['archer'] = 'Archer',
['scout'] = 'Scout',
['cleric'] = 'Cleric',
['outlaw'] = 'Outlaw',
['blade'] = 'Blade',
['elementor'] = 'Elementor',
['saboteur'] = 'Saboteur',
['bomber'] = 'Bomber',
['stormweaver'] = 'Stormweaver',
['sage'] = 'Sage',
['squire'] = 'Squire',
['cannoneer'] = 'Cannoneer',
['dual_gunner'] = 'Dual Gunner',
['hunter'] = 'Hunter',
['sentry'] = 'Sentry',
['chronomancer'] = 'Chronomancer',
['spellblade'] = 'Spellblade',
['psykeeper'] = 'Psykeeper',
['engineer'] = 'Engineer',
['plague_doctor'] = 'Plague Doctor',
['barbarian'] = 'Barbarian',
['juggernaut'] = 'Juggernaut',
['lich'] = 'Lich',
['cryomancer'] = 'Cryomancer',
['pyromancer'] = 'Pyromancer',
['corruptor'] = 'Corruptor',
['beastmaster'] = 'Beastmaster',
['launcher'] = 'Launcher',
['jester'] = 'Jester',
['assassin'] = 'Assassin',
['host'] = 'Host',
['carver'] = 'Carver',
['bane'] = 'Bane',
['psykino'] = 'Psykino',
['barrager'] = 'Barrager',
['highlander'] = 'Highlander',
['fairy'] = 'Fairy',
['priest'] = 'Priest',
['infestor'] = 'Infestor',
['flagellant'] = 'Flagellant',
['arcanist'] = 'Arcanist',
['illusionist'] = 'Illusionist',
['artificer'] = 'Artificer',
['witch'] = 'Witch',
['silencer'] = 'Silencer',
['vulcanist'] = 'Vulcanist',
['warden'] = 'Warden',
['psychic'] = 'Psychic',
['miner'] = 'Miner',
['merchant'] = 'Merchant',
['usurer'] = 'Usurer',
['gambler'] = 'Gambler',
['thief'] = 'Thief',
}
character_colors = {
['vagrant'] = fg[0],
['swordsman'] = yellow[0],
['wizard'] = blue[0],
['magician'] = blue[0],
['archer'] = green[0],
['scout'] = red[0],
['cleric'] = green[0],
['outlaw'] = red[0],
['blade'] = yellow[0],
['elementor'] = blue[0],
['saboteur'] = orange[0],
['bomber'] = orange[0],
['stormweaver'] = blue[0],
['sage'] = purple[0],
['squire'] = yellow[0],
['cannoneer'] = orange[0],
['dual_gunner'] = green[0],
['hunter'] = green[0],
['sentry'] = green[0],
['chronomancer'] = blue[0],
['spellblade'] = blue[0],
['psykeeper'] = fg[0],
['engineer'] = orange[0],
['plague_doctor'] = purple[0],
['barbarian'] = yellow[0],
['juggernaut'] = yellow[0],
['lich'] = blue[0],
['cryomancer'] = blue[0],
['pyromancer'] = red[0],
['corruptor'] = orange[0],
['beastmaster'] = red[0],
['launcher'] = yellow[0],
['jester'] = red[0],
['assassin'] = purple[0],
['host'] = orange[0],
['carver'] = green[0],
['bane'] = purple[0],
['psykino'] = fg[0],
['barrager'] = green[0],
['highlander'] = yellow[0],
['fairy'] = green[0],
['priest'] = green[0],
['infestor'] = orange[0],
['flagellant'] = fg[0],
['arcanist'] = blue2[0],
['illusionist'] = blue2[0],
['artificer'] = blue2[0],
['witch'] = purple[0],
['silencer'] = blue2[0],
['vulcanist'] = red[0],
['warden'] = yellow[0],
['psychic'] = fg[0],
['miner'] = yellow2[0],
['merchant'] = yellow2[0],
['usurer'] = purple[0],
['gambler'] = yellow2[0],
['thief'] = red[0],
}
character_color_strings = {
['vagrant'] = 'fg',
['swordsman'] = 'yellow',
['wizard'] = 'blue',
['magician'] = 'blue',
['archer'] = 'green',
['scout'] = 'red',
['cleric'] = 'green',
['outlaw'] = 'red',
['blade'] = 'yellow',
['elementor'] = 'blue',
['saboteur'] = 'orange',
['bomber'] = 'orange',
['stormweaver'] = 'blue',
['sage'] = 'purple',
['squire'] = 'yellow',
['cannoneer'] = 'orange',
['dual_gunner'] = 'green',
['hunter'] = 'green',
['sentry'] = 'green',
['chronomancer'] = 'blue',
['spellblade'] = 'blue',
['psykeeper'] = 'fg',
['engineer'] = 'orange',
['plague_doctor'] = 'purple',
['barbarian'] = 'yellow',
['juggernaut'] = 'yellow',
['lich'] = 'blue',
['cryomancer'] = 'blue',
['pyromancer'] = 'red',
['corruptor'] = 'orange',
['beastmaster'] = 'red',
['launcher'] = 'yellow',
['jester'] = 'red',
['assassin'] = 'purple',
['host'] = 'orange',
['carver'] = 'green',
['bane'] = 'purple',
['psykino'] = 'fg',
['barrager'] = 'green',
['highlander'] = 'yellow',
['fairy'] = 'green',
['priest'] = 'green',
['infestor'] = 'orange',
['flagellant'] = 'fg',
['arcanist'] = 'blue2',
['illusionist'] = 'blue2',
['artificer'] = 'blue2',
['witch'] = 'purple',
['silencer'] = 'blue2',
['vulcanist'] = 'red',
['warden'] = 'yellow',
['psychic'] = 'fg',
['miner'] = 'yellow2',
['merchant'] = 'yellow2',
['usurer'] = 'purple',
['gambler'] = 'yellow2',
['thief'] = 'red',
}
character_classes = {
['vagrant'] = {'explorer', 'psyker'},
['swordsman'] = {'warrior'},
['wizard'] = {'mage', 'nuker'},
['magician'] = {'mage'},
['archer'] = {'ranger'},
['scout'] = {'rogue'},
['cleric'] = {'healer'},
['outlaw'] = {'warrior', 'rogue'},
['blade'] = {'warrior', 'nuker'},
['elementor'] = {'mage', 'nuker'},
-- ['saboteur'] = {'rogue', 'conjurer', 'nuker'},
['bomber'] = {'nuker', 'conjurer'},
['stormweaver'] = {'enchanter'},
['sage'] = {'nuker', 'forcer'},
['squire'] = {'warrior', 'enchanter'},
['cannoneer'] = {'ranger', 'nuker'},
['dual_gunner'] = {'ranger', 'rogue'},
-- ['hunter'] = {'ranger', 'conjurer', 'forcer'},
['sentry'] = {'ranger', 'conjurer'},
['chronomancer'] = {'mage', 'enchanter'},
['spellblade'] = {'mage', 'rogue'},
['psykeeper'] = {'healer', 'psyker'},
['engineer'] = {'conjurer'},
['plague_doctor'] = {'nuker', 'voider'},
['barbarian'] = {'curser', 'warrior'},
['juggernaut'] = {'forcer', 'warrior'},
['lich'] = {'mage'},
['cryomancer'] = {'mage', 'voider'},
['pyromancer'] = {'mage', 'nuker', 'voider'},
['corruptor'] = {'ranger', 'swarmer'},
['beastmaster'] = {'rogue', 'swarmer'},
['launcher'] = {'curser', 'forcer'},
['jester'] = {'curser', 'rogue'},
['assassin'] = {'rogue', 'voider'},
['host'] = {'swarmer'},
['carver'] = {'conjurer', 'healer'},
['bane'] = {'curser', 'voider'},
['psykino'] = {'mage', 'psyker', 'forcer'},
['barrager'] = {'ranger', 'forcer'},
['highlander'] = {'warrior'},
['fairy'] = {'enchanter', 'healer'},
['priest'] = {'healer'},
['infestor'] = {'curser', 'swarmer'},
['flagellant'] = {'psyker', 'enchanter'},
['arcanist'] = {'sorcerer'},
-- ['illusionist'] = {'sorcerer', 'conjurer'},
['artificer'] = {'sorcerer', 'conjurer'},
['witch'] = {'sorcerer', 'voider'},
['silencer'] = {'sorcerer', 'curser'},
['vulcanist'] = {'sorcerer', 'nuker'},
['warden'] = {'sorcerer', 'forcer'},
['psychic'] = {'sorcerer', 'psyker'},
['miner'] = {'mercenary'},
['merchant'] = {'mercenary'},
['usurer'] = {'curser', 'mercenary', 'voider'},
['gambler'] = {'mercenary', 'sorcerer'},
['thief'] = {'rogue', 'mercenary'},
}
character_class_strings = {
['vagrant'] = '[fg]Explorer, Psyker',
['swordsman'] = '[yellow]Warrior',
['wizard'] = '[blue]Mage, [red]Nuker',
['magician'] = '[blue]Mage',
['archer'] = '[green]Ranger',
['scout'] = '[red]Rogue',
['cleric'] = '[green]Healer',
['outlaw'] = '[yellow]Warrior, [red]Rogue',
['blade'] = '[yellow]Warrior, [red]Nuker',
['elementor'] = '[blue]Mage, [red]Nuker',
-- ['saboteur'] = '[red]Rogue, [orange]Conjurer, [red]Nuker',
['bomber'] = '[red]Nuker, [orange]Builder',
['stormweaver'] = '[blue]Enchanter',
['sage'] = '[red]Nuker, [yellow]Forcer',
['squire'] = '[yellow]Warrior, [blue]Enchanter',
['cannoneer'] = '[green]Ranger, [red]Nuker',
['dual_gunner'] = '[green]Ranger, [red]Rogue',
-- ['hunter'] = '[green]Ranger, [orange]Conjurer, [yellow]Forcer',
['sentry'] = '[green]Ranger, [orange]Builder',
['chronomancer'] = '[blue]Mage, Enchanter',
['spellblade'] = '[blue]Mage, [red]Rogue',
['psykeeper'] = '[green]Healer, [fg]Psyker',
['engineer'] = '[orange]Builder',
['plague_doctor'] = '[red]Nuker, [purple]Voider',
['barbarian'] = '[purple]Curser, [yellow]Warrior',
['juggernaut'] = '[yellow]Forcer, Warrior',
['lich'] = '[blue]Mage',
['cryomancer'] = '[blue]Mage, [purple]Voider',
['pyromancer'] = '[blue]Mage, [red]Nuker, [purple]Voider',
['corruptor'] = '[green]Ranger, [orange]Swarmer',
['beastmaster'] = '[red]Rogue, [orange]Swarmer',
['launcher'] = '[yellow]Forcer, [purple]Curser',
['jester'] = '[purple]Curser, [red]Rogue',
['assassin'] = '[red]Rogue, [purple]Voider',
['host'] = '[orange]Swarmer',
['carver'] = '[orange]Builder, [green]Healer',
['bane'] = '[purple]Curser, Voider',
['psykino'] = '[blue]Mage, [fg]Psyker, [yellow]Forcer',
['barrager'] = '[green]Ranger, [yellow]Forcer',
['highlander'] = '[yellow]Warrior',
['fairy'] = '[blue]Enchanter, [green]Healer',
['priest'] = '[green]Healer',
['infestor'] = '[purple]Curser, [orange]Swarmer',
['flagellant'] = '[fg]Psyker, [blue]Enchanter',
['arcanist'] = '[blue2]Sorcerer',
-- ['illusionist'] = '[blue2]Sorcerer, [orange]Conjurer',
['artificer'] = '[blue2]Sorcerer, [orange]Builder',
['witch'] = '[blue2]Sorcerer, [purple]Voider',
['silencer'] = '[blue2]Sorcerer, [purple]Curser',
['vulcanist'] = '[blue2]Sorcerer, [red]Nuker',
['warden'] = '[blue2]Sorcerer, [yellow]Forcer',
['psychic'] = '[blue2]Sorcerer, [fg]Psyker',
['miner'] = '[yellow2]Mercenary',
['merchant'] = '[yellow2]Mercenary',
['usurer'] = '[purple]Curser, [yellow2]Mercenary, [purple]Voider',
['gambler'] = '[yellow2]Mercenary, [blue2]Sorcerer',
['thief'] = '[red]Rogue, [yellow2]Mercenary',
}
get_character_stat_string = function(character, level)
local group = Group():set_as_physics_world(32, 0, 0, {'player', 'enemy', 'projectile', 'enemy_projectile'})
local player = Player{group = group, leader = true, character = character, level = level, follower_index = 1}
player:update(0)
return '[red]HP: [red]' .. player.max_hp .. '[fg], [red]DMG: [red]' .. player.dmg .. '[fg], [green]ASPD: [green]' .. math.round(player.aspd_m, 2) .. 'x[fg], [blue]AREA: [blue]' ..
math.round(player.area_dmg_m*player.area_size_m, 2) .. 'x[fg], [yellow]DEF: [yellow]' .. math.round(player.def, 2) .. '[fg], [green]MVSPD: [green]' .. math.round(player.v, 2) .. '[fg]'
end
get_character_stat = function(character, level, stat)
local group = Group():set_as_physics_world(32, 0, 0, {'player', 'enemy', 'projectile', 'enemy_projectile'})
local player = Player{group = group, leader = true, character = character, level = level, follower_index = 1}
player:update(0)
return math.round(player[stat], 2)
end
character_descriptions = {
['vagrant'] = function(lvl) return '[fg]shoots a projectile that deals [yellow]' .. get_character_stat('vagrant', lvl, 'dmg') .. '[fg] damage' end,
['swordsman'] = function(lvl) return '[fg]deals [yellow]' .. get_character_stat('swordsman', lvl, 'dmg') .. '[fg] damage in an area, deals extra [yellow]' ..
math.round(get_character_stat('swordsman', lvl, 'dmg')*0.15, 2) .. '[fg] damage per unit hit' end,
['wizard'] = function(lvl) return '[fg]shoots a projectile that deals [yellow]' .. get_character_stat('wizard', lvl, 'dmg') .. ' AoE[fg] damage' end,
['magician'] = function(lvl) return '[fg]creates a small area that deals [yellow]' .. get_character_stat('magician', lvl, 'dmg') .. ' AoE[fg] damage' end,
['archer'] = function(lvl) return '[fg]shoots an arrow that deals [yellow]' .. get_character_stat('archer', lvl, 'dmg') .. '[fg] damage and pierces' end,
['scout'] = function(lvl) return '[fg]throws a knife that deals [yellow]' .. get_character_stat('scout', lvl, 'dmg') .. '[fg] damage and chains [yellow]3[fg] times' end,
['cleric'] = function(lvl) return '[fg]creates [yellow]1[fg] healing orb every [yellow]8[fg] seconds' end,
['outlaw'] = function(lvl) return '[fg]throws a fan of [yellow]5[fg] knives, each dealing [yellow]' .. get_character_stat('outlaw', lvl, 'dmg') .. '[fg] damage' end,
['blade'] = function(lvl) return '[fg]throws multiple blades that deal [yellow]' .. get_character_stat('blade', lvl, 'dmg') .. ' AoE[fg] damage' end,
['elementor'] = function(lvl) return '[fg]deals [yellow]' .. get_character_stat('elementor', lvl, 'dmg') .. ' AoE[fg] damage in a large area centered on a random target' end,
['saboteur'] = function(lvl) return '[fg]calls [yellow]2[fg] saboteurs to seek targets and deal [yellow]' .. get_character_stat('saboteur', lvl, 'dmg') .. ' AoE[fg] damage' end,
['bomber'] = function(lvl) return '[fg]plants a bomb, when it explodes it deals [yellow]' .. 2*get_character_stat('bomber', lvl, 'dmg') .. ' AoE[fg] damage' end,
['stormweaver'] = function(lvl) return '[fg]infuses projectiles with chain lightning that deals [yellow]20%[fg] damage to [yellow]2[fg] enemies' end,
['sage'] = function(lvl) return '[fg]shoots a slow projectile that draws enemies in' end,
['squire'] = function(lvl) return '[yellow]+20%[fg] damage and defense to all allies' end,
['cannoneer'] = function(lvl) return '[fg]shoots a projectile that deals [yellow]' .. 2*get_character_stat('cannoneer', lvl, 'dmg') .. ' AoE[fg] damage' end,
['dual_gunner'] = function(lvl) return '[fg]shoots two parallel projectiles, each dealing [yellow]' .. get_character_stat('dual_gunner', lvl, 'dmg') .. '[fg] damage' end,
['hunter'] = function(lvl) return '[fg]shoots an arrow that deals [yellow]' .. get_character_stat('hunter', lvl, 'dmg') .. '[fg] damage and has a [yellow]20%[fg] chance to summon a pet' end,
['sentry'] = function(lvl) return '[fg]spawns a rotating turret that shoots [yellow]4[fg] projectiles, each dealing [yellow]' .. get_character_stat('sentry', lvl, 'dmg') .. '[fg] damage' end,
['chronomancer'] = function(lvl) return '[yellow]+20%[fg] attack speed to all allies' end,
['spellblade'] = function(lvl) return '[fg]throws knives that deal [yellow]' .. get_character_stat('spellblade', lvl, 'dmg') .. '[fg] damage, pierce and spiral outwards' end,
['psykeeper'] = function(lvl) return '[fg]creates [yellow]3[fg] healing orbs every time the psykeeper takes [yellow]25%[fg] of its max HP in damage' end,
['engineer'] = function(lvl) return '[fg]drops turrets that shoot bursts of projectiles, each dealing [yellow]' .. get_character_stat('engineer', lvl, 'dmg') .. '[fg] damage' end,
['plague_doctor'] = function(lvl) return '[fg]creates an area that deals [yellow]' .. get_character_stat('plague_doctor', lvl, 'dmg') .. '[fg] damage per second' end,
['barbarian'] = function(lvl) return '[fg]deals [yellow]' .. get_character_stat('barbarian', lvl, 'dmg') .. '[fg] AoE damage and stuns enemies hit for [yellow]4[fg] seconds' end,
['juggernaut'] = function(lvl) return '[fg]deals [yellow]' .. get_character_stat('juggernaut', lvl, 'dmg') .. '[fg] AoE damage and pushes enemies away with a strong force' end,
['lich'] = function(lvl) return '[fg]launches a slow projectile that jumps [yellow]7[fg] times, dealing [yellow]' .. 2*get_character_stat('lich', lvl, 'dmg') .. '[fg] damage per hit' end,
['cryomancer'] = function(lvl) return '[fg]nearby enemies take [yellow]' .. get_character_stat('cryomancer', lvl, 'dmg') .. '[fg] damage per second' end,
['pyromancer'] = function(lvl) return '[fg]nearby enemies take [yellow]' .. get_character_stat('pyromancer', lvl, 'dmg') .. '[fg] damage per second' end,
['corruptor'] = function(lvl) return '[fg]shoots an arrow that deals [yellow]' .. get_character_stat('corruptor', lvl, 'dmg') .. '[fg] damage, spawn [yellow]3[fg] critters if it kills' end,
['beastmaster'] = function(lvl) return '[fg]throws a knife that deals [yellow]' .. get_character_stat('beastmaster', lvl, 'dmg') .. '[fg] damage, spawn [yellow]2[fg] critters if it crits' end,
['launcher'] = function(lvl) return '[fg]all nearby enemies are pushed after [yellow]4[fg] seconds, taking [yellow]' .. 2*get_character_stat('launcher', lvl, 'dmg') .. '[fg] damage on wall hit' end,
['jester'] = function(lvl) return "[fg]curses [yellow]6[fg] nearby enemies for [yellow]6[fg] seconds, they will explode into [yellow]4[fg] knives on death" end,
['assassin'] = function(lvl) return '[fg]throws a piercing knife that deals [yellow]' .. get_character_stat('assassin', lvl, 'dmg') .. '[fg] damage + [yellow]' ..
get_character_stat('assassin', lvl, 'dmg')/2 .. '[fg] damage per second' end,
['host'] = function(lvl) return '[fg]periodically spawn [yellow]1[fg] small critter' end,
['carver'] = function(lvl) return '[fg]carves a statue that creates [yellow]1[fg] healing orb every [yellow]6[fg] seconds' end,
['bane'] = function(lvl) return '[fg]curses [yellow]6[fg] nearby enemies for [yellow]6[fg] seconds, they will create small void rifts on death' end,
['psykino'] = function(lvl) return '[fg]pulls enemies together for [yellow]2[fg] seconds' end,
['barrager'] = function(lvl) return '[fg]shoots a barrage of [yellow]3[fg] arrows, each dealing [yellow]' .. get_character_stat('barrager', lvl, 'dmg') .. '[fg] damage and pushing enemies' end,
['highlander'] = function(lvl) return '[fg]deals [yellow]' .. 5*get_character_stat('highlander', lvl, 'dmg') .. '[fg] AoE damage' end,
['fairy'] = function(lvl) return '[fg]creates [yellow]1[fg] healing orb and grants [yellow]1[fg] unit [yellow]+100%[fg] attack speed for [yellow]6[fg] seconds' end,
['priest'] = function(lvl) return '[fg]creates [yellow]3[fg] healing orbs every [yellow]12[fg] seconds' end,
['infestor'] = function(lvl) return '[fg]curses [yellow]8[fg] nearby enemies for [yellow]6[fg] seconds, they will release [yellow]2[fg] critters on death' end,
['flagellant'] = function(lvl) return '[fg]deals [yellow]' .. 2*get_character_stat('flagellant', lvl, 'dmg') .. '[fg] damage to self and grants [yellow]+4%[fg] damage to all allies per cast' end,
['arcanist'] = function(lvl) return '[fg]launches a slow moving orb that launches projectiles, each dealing [yellow]' .. get_character_stat('arcanist', lvl, 'dmg') .. '[fg] damage' end,
['illusionist'] = function(lvl) return '[fg]launches a projectile that deals [yellow]' .. get_character_stat('illusionist', lvl, 'dmg') .. '[fg] damage and creates copies that do the same' end,
['artificer'] = function(lvl) return '[fg]spawns an automaton that shoots a projectile that deals [yellow]' .. get_character_stat('artificer', lvl, 'dmg') .. '[fg] damage' end,
['witch'] = function(lvl) return '[fg]creates an area that ricochets and deals [yellow]' .. get_character_stat('witch', lvl, 'dmg') .. '[fg] damage per second' end,
['silencer'] = function(lvl) return '[fg]curses [yellow]5[fg] nearby enemies for [yellow]6[fg] seconds, preventing them from using special attacks' end,
['vulcanist'] = function(lvl) return '[fg]creates a volcano that explodes the nearby area [yellow]4[fg] times, dealing [yellow]' .. get_character_stat('vulcanist', lvl, 'dmg') .. ' AoE [fg]damage' end,
['warden'] = function(lvl) return '[fg]creates a force field around a random unit that prevents enemies from entering' end,
['psychic'] = function(lvl) return '[fg]creates a small area that deals [yellow]' .. get_character_stat('psychic', lvl, 'dmg') .. ' AoE[fg] damage' end,
['miner'] = function(lvl) return '[fg]picking up gold releases [yellow]4[fg] homing projectiles that each deal [yellow]' .. get_character_stat('miner', lvl, 'dmg') .. ' [fg]damage' end,
['merchant'] = function(lvl) return '[fg]gain [yellow]+1[fg] interest for every [yellow]10[fg] gold, up to a max of [yellow]+10[fg] from the merchant' end,
['usurer'] = function(lvl) return '[fg]curses [yellow]3[fg] nearby enemies indefinitely with debt, dealing [yellow]' .. get_character_stat('usurer', lvl, 'dmg') .. '[fg] damage per second' end,
['gambler'] = function(lvl) return '[fg]deal [yellow]2X[fg] damage to a single random enemy where X is how much gold you have' end,
['thief'] = function(lvl) return '[fg]throws a knife that deals [yellow]' .. 2*get_character_stat('thief', lvl, 'dmg') .. '[fg] damage and chains [yellow]5[fg] times' end,
}
character_effect_names = {
['vagrant'] = '[fg]Experience',
['swordsman'] = '[yellow]Cleave',
['wizard'] = '[blue]Magic Missile',
['magician'] = '[blue]Quick Cast',
['archer'] = '[green]Bounce Shot',
['scout'] = '[red]Dagger Resonance',
['cleric'] = '[green]Mass Heal',
['outlaw'] = '[red]Flying Daggers',
['blade'] = '[yellow]Blade Resonance',
['elementor'] = '[blue]Windfield',
['saboteur'] = '[orange]Demoman',
['bomber'] = '[orange]Demoman',
['stormweaver'] = '[blue]Wide Lightning',
['sage'] = '[purple]Dimension Compression',
['squire'] = '[yellow]Shiny Gear',
['cannoneer'] = '[orange]Cannon Barrage',
['dual_gunner'] = '[green]Gun Kata',
['hunter'] = '[green]Feral Pack',
['sentry'] = '[green]Sentry Barrage',
['chronomancer'] = '[blue]Quicken',
['spellblade'] = '[blue]Spiralism',
['psykeeper'] = '[fg]Crucio',
['engineer'] = '[orange]Upgrade!!!',
['plague_doctor'] = '[purple]Black Death Steam',
['barbarian'] = '[yellow]Seism',
['juggernaut'] = '[yellow]Brutal Impact',
['lich'] = '[blue]Chain Frost',
['cryomancer'] = '[blue]Frostbite',
['pyromancer'] = '[red]Ignite',
['corruptor'] = '[orange]Corruption',
['beastmaster'] = '[red]Call of the Wild',
['launcher'] = '[orange]Kineticism',
['jester'] = "[red]Pandemonium",
['assassin'] = '[purple]Toxic Delivery',
['host'] = '[orange]Invasion',
['carver'] = '[green]World Tree',
['bane'] = '[purple]Nightmare',
['psykino'] = '[fg]Magnetic Force',
['barrager'] = '[green]Barrage',
['highlander'] = '[yellow]Moulinet',
['fairy'] = '[green]Whimsy',
['priest'] = '[green]Divine Intervention',
['infestor'] = '[orange]Infestation',
['flagellant'] = '[red]Zealotry',
['arcanist'] = '[blue2]Arcane Orb',
['illusionist'] = '[blue2]Mirror Image',
['artificer'] = '[blue2]Spell Formula Efficiency',
['witch'] = '[purple]Death Pool',
['silencer'] = '[blue2]Arcane Curse',
['vulcanist'] = '[red]Lava Burst',
['warden'] = '[yellow]Magnetic Field',
['psychic'] = '[fg]Mental Strike',
['miner'] = '[yellow2]Golden Bolts',
['merchant'] = '[yellow2]Item Shop',
['usurer'] = '[purple]Bankruptcy',
['gambler'] = '[yellow2]Multicast',
['thief'] = '[red]Ultrakill',
}
character_effect_names_gray = {
['vagrant'] = '[light_bg]Experience',
['swordsman'] = '[light_bg]Cleave',
['wizard'] = '[light_bg]Magic Missile',
['magician'] = '[light_bg]Quick Cast',
['archer'] = '[light_bg]Bounce Shot',
['scout'] = '[light_bg]Dagger Resonance',
['cleric'] = '[light_bg]Mass Heal ',
['outlaw'] = '[light_bg]Flying Daggers',
['blade'] = '[light_bg]Blade Resonance',
['elementor'] = '[light_bg]Windfield',
['saboteur'] = '[light_bg]Demoman',
['bomber'] = '[light_bg]Demoman',
['stormweaver'] = '[light_bg]Wide Lightning',
['sage'] = '[light_bg]Dimension Compression',
['squire'] = '[light_bg]Shiny Gear',
['cannoneer'] = '[light_bg]Cannon Barrage',
['dual_gunner'] = '[light_bg]Gun Kata',
['hunter'] = '[light_bg]Feral Pack',
['sentry'] = '[light_bg]Sentry Barrage',
['chronomancer'] = '[light_bg]Quicken',
['spellblade'] = '[light_bg]Spiralism',
['psykeeper'] = '[light_bg]Crucio',
['engineer'] = '[light_bg]Upgrade!!!',
['plague_doctor'] = '[light_bg]Black Death Steam',
['barbarian'] = '[light_bg]Seism',
['juggernaut'] = '[light_bg]Brutal Impact',
['lich'] = '[light_bg]Chain Frost',
['cryomancer'] = '[light_bg]Frostbite',
['pyromancer'] = '[light_bg]Ignite',
['corruptor'] = '[light_bg]Corruption',
['beastmaster'] = '[light_bg]Call of the Wild',
['launcher'] = '[light_bg]Kineticism',
['jester'] = "[light_bg]Pandemonium",
['assassin'] = '[light_bg]Toxic Delivery',
['host'] = '[light_bg]Invasion',
['carver'] = '[light_bg]World Tree',
['bane'] = '[light_bg]Nightmare',
['psykino'] = '[light_bg]Magnetic Force',
['barrager'] = '[light_bg]Barrage',
['highlander'] = '[light_bg]Moulinet',
['fairy'] = '[light_bg]Whimsy',
['priest'] = '[light_bg]Divine Intervention',
['infestor'] = '[light_bg]Infestation',
['flagellant'] = '[light_bg]Zealotry',
['arcanist'] = '[light_bg]Arcane Orb',
['illusionist'] = '[light_bg]Mirror Image',
['artificer'] = '[light_bg]Spell Formula Efficiency',
['witch'] = '[light_bg]Death Pool',
['silencer'] = '[light_bg]Arcane Curse',
['vulcanist'] = '[light_bg]Lava Burst',
['warden'] = '[light_bg]Magnetic Field',
['psychic'] = '[light_bg]Mental Strike',
['miner'] = '[light_bg]Golden Bolts',
['merchant'] = '[light_bg]Item Shop',
['usurer'] = '[light_bg]Bankruptcy',
['gambler'] = '[light_bg]Multicast',
['thief'] = '[light_bg]Ultrakill',
}
character_effect_descriptions = {
['vagrant'] = function() return '[yellow]+15%[fg] attack speed and damage per active class' end,
['swordsman'] = function() return "[fg]the swordsman's damage is [yellow]doubled" end,
['wizard'] = function() return '[fg]the projectile chains [yellow]2[fg] times' end,
['magician'] = function() return '[yellow]+50%[[fg] attack speed every [yellow]12[fg] seconds for [yellow]6[fg] seconds' end,
['archer'] = function() return '[fg]the arrow ricochets off walls [yellow]3[fg] times' end,
['scout'] = function() return '[yellow]+25%[fg] damage per chain and [yellow]+3[fg] chains' end,
['cleric'] = function() return '[fg]creates [yellow]4[fg] healing orbs every [yellow]8[fg] seconds' end,
['outlaw'] = function() return "[yellow]+50%[fg] outlaw attack speed and his knives seek enemies" end,
['blade'] = function() return '[fg]deal additional [yellow]' .. math.round(get_character_stat('blade', 3, 'dmg')/3, 2) .. '[fg] damage per enemy hit' end,
['elementor'] = function() return '[fg]slows enemies by [yellow]60%[fg] for [yellow]6[fg] seconds on hit' end,
['saboteur'] = function() return '[fg]the explosion has [yellow]50%[fg] chance to crit, increasing in size and dealing [yellow]2x[fg] damage' end,
['bomber'] = function() return '[yellow]+100%[fg] bomb area and damage' end,
['stormweaver'] = function() return "[fg]chain lightning's trigger area of effect and number of units hit is [yellow]doubled" end,
['sage'] = function() return '[fg]when the projectile expires deal [yellow]' .. 3*get_character_stat('sage', 3, 'dmg') .. '[fg] damage to all enemies under its influence' end,
['squire'] = function() return '[yellow]+30%[fg] damage, attack speed, movement speed and defense to all allies' end,
['cannoneer'] = function() return '[fg]showers the hit area in [yellow]7[fg] additional cannon shots that deal [yellow]' .. get_character_stat('cannoneer', 3, 'dmg')/2 .. '[fg] AoE damage' end,
['dual_gunner'] = function() return '[fg]every 5th attack shoot in rapid succession for [yellow]2[fg] seconds' end,
['hunter'] = function() return '[fg]summons [yellow]3[fg] pets and the pets ricochet off walls once' end,
['sentry'] = function() return '[yellow]+50%[fg] sentry turret attack speed and the projectiles ricochet [yellow]twice[fg]' end,
['chronomancer'] = function() return '[fg]enemies take damage over time [yellow]50%[fg] faster' end,
['spellblade'] = function() return '[fg]faster projectile speed and tighter turns' end,
['psykeeper'] = function() return '[fg]deal [yellow]double[fg] the damage taken by the psykeeper to all enemies' end,
['engineer'] = function() return '[fg]drops [yellow]2[fg] additional turrets and grants all turrets [yellow]+50%[fg] damage and attack speed' end,
['plague_doctor'] = function() return '[fg]nearby enemies take an additional [yellow]' .. get_character_stat('plague_doctor', 3, 'dmg') .. '[fg] damage per second' end,
['barbarian'] = function() return '[fg]stunned enemies also take [yellow]100%[fg] increased damage' end,
['juggernaut'] = function() return '[fg]enemies pushed by the juggernaut take [yellow]' .. 4*get_character_stat('juggernaut', 3, 'dmg') .. '[fg] damage if they hit a wall' end,
['lich'] = function() return '[fg]chain frost slows enemies hit by [yellow]80%[fg] for [yellow]2[fg] seconds and chains [yellow]+7[fg] times' end,
['cryomancer'] = function() return '[fg]enemies are also slowed by [yellow]60%[fg] while in the area' end,
['pyromancer'] = function() return '[fg]enemies killed by the pyromancer explode, dealing [yellow]' .. get_character_stat('pyromancer', 3, 'dmg') .. '[fg] AoE damage' end,
['corruptor'] = function() return '[fg]spawn [yellow]2[fg] small critters if the corruptor hits an enemy' end,
['beastmaster'] = function() return '[fg]spawn [yellow]4[fg] small critters if the beastmaster gets hit' end,
['launcher'] = function() return '[fg]enemies launched take [yellow]300%[fg] more damage when they hit walls' end,
['jester'] = function() return '[fg]all knives seek enemies and pierce [yellow]2[fg] times' end,
['assassin'] = function() return '[fg]poison inflicted from crits deals [yellow]8x[fg] damage' end,
['host'] = function() return '[fg][yellow]+100%[fg] critter spawn rate and spawn [yellow]2[fg] critters instead' end,
['carver'] = function() return '[fg]carves a tree that creates healing orbs [yellow]twice[fg] as fast' end,
['bane'] = function() return "[yellow]100%[fg] increased area for bane's void rifts" end,
['psykino'] = function() return '[fg]enemies take [yellow]' .. 4*get_character_stat('psykino', 3, 'dmg') .. '[fg] damage and are pushed away when the area expires' end,
['barrager'] = function() return '[fg]every 3rd attack the barrage shoots [yellow]15[fg] projectiles and they push harder' end,
['highlander'] = function() return '[fg]quickly repeats the attack [yellow]3[fg] times' end,
['fairy'] = function() return '[fg]creates [yellow]2[fg] healing orbs and grants [yellow]2[fg] units [yellow]+100%[fg] attack speed' end,
['priest'] = function() return '[fg]picks [yellow]3[fg] units at random and grants them a buff that prevents death once' end,
['infestor'] = function() return '[fg][yellow]triples[fg] the number of critters released' end,
['flagellant'] = function() return '[yellow]2X[fg] flagellant max HP and grants [yellow]+12%[fg] damage to all allies per cast instead' end,
['arcanist'] = function() return '[yellow]+50%[fg] attack speed for the orb and [yellow]2[fg] projectiles are released per cast' end,
['illusionist'] = function() return '[yellow]doubles[fg] the number of copies created and they release [yellow]12[fg] projectiles on death' end,
['artificer'] = function() return '[fg]automatons shoot and move 50% faster and release [yellow]12[fg] projectiles on death' end,
['witch'] = function() return '[fg]the area releases projectiles, each dealing [yellow]' .. get_character_stat('witch', 3, 'dmg') .. '[fg] damage and chaining once' end,
['silencer'] = function() return '[fg]the curse also deals [yellow]' .. get_character_stat('silencer', 3, 'dmg') .. '[fg] damage per second' end,
['vulcanist'] = function() return '[fg]the number and speed of explosions is [yellow]doubled[fg]' end,
['warden'] = function() return '[fg]creates the force field around [yellow]2[fg] units' end,
['psychic'] = function() return '[fg]the attack can happen from any distance and repeats once' end,
['miner'] = function() return '[fg]release [yellow]8[fg] homing projectiles instead and they pierce twice' end,
['merchant'] = function() return '[fg]your first item reroll is always free' end,
['usurer'] = function() return '[fg]if the same enemy is cursed [yellow]3[fg] times it takes [yellow]' .. 10*get_character_stat('usurer', 3, 'dmg') .. '[fg] damage' end,
['gambler'] = function() return '[yellow]60/40/20%[fg] chance to cast the attack [yellow]2/3/4[fg] times' end,
['thief'] = function() return '[fg]if the knife crits it deals [yellow]' .. 10*get_character_stat('thief', 3, 'dmg') .. '[fg] damage, chains [yellow]10[fg] times and grants [yellow]1[fg] gold' end,
}
character_effect_descriptions_gray = {
['vagrant'] = function() return '[light_bg]+15% attack speed and damage per active class' end,
['swordsman'] = function() return "[light_bg]the swordsman's damage is doubled" end,
['wizard'] = function() return '[light_bg]the projectile chains 3 times' end,
['magician'] = function() return '[light_bg]+50% attack speed every 12 seconds for 6 seconds' end,
['archer'] = function() return '[light_bg]the arrow ricochets off walls 3 times' end,
['scout'] = function() return '[light_bg]+25% damage per chain and +3 chains' end,
['cleric'] = function() return '[light_bg]creates 4 healing orbs' end,
['outlaw'] = function() return "[light_bg]+50% outlaw attack speed and his knives seek enemies" end,
['blade'] = function() return '[light_bg]deal additional ' .. math.round(get_character_stat('blade', 3, 'dmg')/2, 2) .. ' damage per enemy hit' end,
['elementor'] = function() return '[light_bg]slows enemies by 60% for 6 seconds on hit' end,
['saboteur'] = function() return '[light_bg]the explosion has 50% chance to crit, increasing in size and dealing 2x damage' end,
['bomber'] = function() return '[light_bg]+100% bomb area and damage' end,
['stormweaver'] = function() return "[light_bg]chain lightning's trigger area of effect and number of units hit is doubled" end,
['sage'] = function() return '[light_bg]when the projectile expires deal ' .. 3*get_character_stat('sage', 3, 'dmg') .. ' damage to all enemies under its influence' end,
['squire'] = function() return '[light_bg]+30% damage, attack speed, movement speed and defense to all allies' end,
['cannoneer'] = function() return '[light_bg]showers the hit area in 7 additional cannon shots that deal ' .. get_character_stat('cannoneer', 3, 'dmg')/2 .. ' AoE damage' end,
['dual_gunner'] = function() return '[light_bg]every 5th attack shoot in rapid succession for 2 seconds' end,
['hunter'] = function() return '[light_bg]summons 3 pets and the pets ricochet off walls once' end,
['sentry'] = function() return '[light_bg]+50% sentry turret attack speed and the projectiles ricochet twice' end,
['chronomancer'] = function() return '[light_bg]enemies take damage over time 50% faster' end,
['spellblade'] = function() return '[light_bg]faster projectile speed and tighter turns' end,
['psykeeper'] = function() return '[light_bg]deal double the damage taken by the psykeeper to all enemies' end,
['engineer'] = function() return '[light_bg]drops 2 additional turrets and grants all turrets +50% damage and attack speed' end,
['plague_doctor'] = function() return '[light_bg]nearby enemies take an additional ' .. get_character_stat('plague_doctor', 3, 'dmg') .. ' damage per second' end,
['barbarian'] = function() return '[light_bg]stunned enemies also take 100% increased damage' end,
['juggernaut'] = function() return '[light_bg]enemies pushed by the juggernaut take ' .. 4*get_character_stat('juggernaut', 3, 'dmg') .. ' damage if they hit a wall' end,
['lich'] = function() return '[light_bg]chain frost slows enemies hit by 80% for 2 seconds and chains +7 times' end,
['cryomancer'] = function() return '[light_bg]enemies are also slowed by 60% while in the area' end,
['pyromancer'] = function() return '[light_bg]enemies killed by the pyromancer explode, dealing ' .. get_character_stat('pyromancer', 3, 'dmg') .. ' AoE damage' end,
['corruptor'] = function() return '[light_bg]spawn 2 small critters if the corruptor hits an enemy' end,
['beastmaster'] = function() return '[light_bg]spawn 4 small critters if the beastmaster gets hit' end,
['launcher'] = function() return '[light_bg]enemies launched take 300% more damage when they hit walls' end,
['jester'] = function() return '[light_bg]curses 6 enemies and all knives seek enemies and pierce 2 times' end,
['assassin'] = function() return '[light_bg]poison inflicted from crits deals 8x damage' end,
['host'] = function() return '[light_bg]+100% critter spawn rate and spawn 2 critters instead' end,
['carver'] = function() return '[light_bg]carves a tree that creates healing orbs twice as fast' end,
['bane'] = function() return "[light_bg]100% increased area for bane's void rifts" end,
['psykino'] = function() return '[light_bg]enemies take ' .. 4*get_character_stat('psykino', 3, 'dmg') .. ' damage and are pushed away when the area expires' end,
['barrager'] = function() return '[light_bg]every 3rd attack the barrage shoots 15 projectiles and they push harder' end,
['highlander'] = function() return '[light_bg]quickly repeats the attack 3 times' end,
['fairy'] = function() return '[light_bg]creates 2 healing orbs and grants 2 units +100% attack speed' end,
['priest'] = function() return '[light_bg]picks 3 units at random and grants them a buff that prevents death once' end,
['infestor'] = function() return '[light_bg]triples the number of critters released' end,
['flagellant'] = function() return '[light_bg]2X flagellant max HP and grants +12% damage to all allies per cast instead' end,
['arcanist'] = function() return '[light_bg]+50% attack speed for the orb and 2 projectiles are released per cast' end,
['illusionist'] = function() return '[light_bg]doubles the number of copies created and they release 12 projectiles on death' end,
['artificer'] = function() return '[light_bg]automatons shoot and move 50% faster and release 12 projectiles on death' end,
['witch'] = function() return '[light_bg]the area periodically releases projectiles, each dealing ' .. get_character_stat('witch', 3, 'dmg') .. ' damage and chaining once' end,
['silencer'] = function() return '[light_bg]the curse also deals ' .. get_character_stat('silencer', 3, 'dmg') .. ' damage per second' end,
['vulcanist'] = function() return '[light_bg]the number and speed of explosions is doubled' end,
['warden'] = function() return '[light_bg]creates the force field around 2 units' end,
['psychic'] = function() return '[light_bg]the attack can happen from any distance and repeats once' end,
['miner'] = function() return '[light_bg]release 8 homing projectiles instead and they pierce twice' end,
['merchant'] = function() return '[light_bg]your first item reroll is always free' end,
['usurer'] = function() return '[light_bg]if the same enemy is cursed 3 times it takes ' .. 10*get_character_stat('usurer', 3, 'dmg') .. ' damage' end,
['gambler'] = function() return '[light_bg]60/40/20% chance to cast the attack 2/3/4 times' end,
['thief'] = function() return '[light_bg]if the knife crits it deals ' .. 10*get_character_stat('thief', 3, 'dmg') .. ' damage, chains 10 times and grants 1 gold' end,
}
character_stats = {
['vagrant'] = function(lvl) return get_character_stat_string('vagrant', lvl) end,
['swordsman'] = function(lvl) return get_character_stat_string('swordsman', lvl) end,
['wizard'] = function(lvl) return get_character_stat_string('wizard', lvl) end,
['magician'] = function(lvl) return get_character_stat_string('magician', lvl) end,
['archer'] = function(lvl) return get_character_stat_string('archer', lvl) end,
['scout'] = function(lvl) return get_character_stat_string('scout', lvl) end,
['cleric'] = function(lvl) return get_character_stat_string('cleric', lvl) end,
['outlaw'] = function(lvl) return get_character_stat_string('outlaw', lvl) end,
['blade'] = function(lvl) return get_character_stat_string('blade', lvl) end,
['elementor'] = function(lvl) return get_character_stat_string('elementor', lvl) end,
['saboteur'] = function(lvl) return get_character_stat_string('saboteur', lvl) end,
['bomber'] = function(lvl) return get_character_stat_string('bomber', lvl) end,
['stormweaver'] = function(lvl) return get_character_stat_string('stormweaver', lvl) end,
['sage'] = function(lvl) return get_character_stat_string('sage', lvl) end,
['squire'] = function(lvl) return get_character_stat_string('squire', lvl) end,
['cannoneer'] = function(lvl) return get_character_stat_string('cannoneer', lvl) end,
['dual_gunner'] = function(lvl) return get_character_stat_string('dual_gunner', lvl) end,
['hunter'] = function(lvl) return get_character_stat_string('hunter', lvl) end,
['sentry'] = function(lvl) return get_character_stat_string('sentry', lvl) end,
['chronomancer'] = function(lvl) return get_character_stat_string('chronomancer', lvl) end,
['spellblade'] = function(lvl) return get_character_stat_string('spellblade', lvl) end,
['psykeeper'] = function(lvl) return get_character_stat_string('psykeeper', lvl) end,
['engineer'] = function(lvl) return get_character_stat_string('engineer', lvl) end,
['plague_doctor'] = function(lvl) return get_character_stat_string('plague_doctor', lvl) end,
['barbarian'] = function(lvl) return get_character_stat_string('barbarian', lvl) end,
['juggernaut'] = function(lvl) return get_character_stat_string('juggernaut', lvl) end,
['lich'] = function(lvl) return get_character_stat_string('lich', lvl) end,
['cryomancer'] = function(lvl) return get_character_stat_string('cryomancer', lvl) end,
['pyromancer'] = function(lvl) return get_character_stat_string('pyromancer', lvl) end,
['corruptor'] = function(lvl) return get_character_stat_string('corruptor', lvl) end,
['beastmaster'] = function(lvl) return get_character_stat_string('beastmaster', lvl) end,
['launcher'] = function(lvl) return get_character_stat_string('launcher', lvl) end,
['jester'] = function(lvl) return get_character_stat_string('jester', lvl) end,
['assassin'] = function(lvl) return get_character_stat_string('assassin', lvl) end,
['host'] = function(lvl) return get_character_stat_string('host', lvl) end,
['carver'] = function(lvl) return get_character_stat_string('carver', lvl) end,
['bane'] = function(lvl) return get_character_stat_string('bane', lvl) end,
['psykino'] = function(lvl) return get_character_stat_string('psykino', lvl) end,
['barrager'] = function(lvl) return get_character_stat_string('barrager', lvl) end,
['highlander'] = function(lvl) return get_character_stat_string('highlander', lvl) end,
['fairy'] = function(lvl) return get_character_stat_string('fairy', lvl) end,
['priest'] = function(lvl) return get_character_stat_string('priest', lvl) end,
['infestor'] = function(lvl) return get_character_stat_string('infestor', lvl) end,
['flagellant'] = function(lvl) return get_character_stat_string('flagellant', lvl) end,
['arcanist'] = function(lvl) return get_character_stat_string('arcanist', lvl) end,
['illusionist'] = function(lvl) return get_character_stat_string('illusionist', lvl) end,
['artificer'] = function(lvl) return get_character_stat_string('artificer', lvl) end,
['witch'] = function(lvl) return get_character_stat_string('witch', lvl) end,
['silencer'] = function(lvl) return get_character_stat_string('silencer', lvl) end,
['vulcanist'] = function(lvl) return get_character_stat_string('vulcanist', lvl) end,
['warden'] = function(lvl) return get_character_stat_string('warden', lvl) end,
['psychic'] = function(lvl) return get_character_stat_string('psychic', lvl) end,
['miner'] = function(lvl) return get_character_stat_string('miner', lvl) end,
['merchant'] = function(lvl) return get_character_stat_string('merchant', lvl) end,
['usurer'] = function(lvl) return get_character_stat_string('usurer', lvl) end,
['gambler'] = function(lvl) return get_character_stat_string('gambler', lvl) end,
['thief'] = function(lvl) return get_character_stat_string('thief', lvl) end,
}
class_stat_multipliers = {
['ranger'] = {hp = 1, dmg = 1.2, aspd = 1.5, area_dmg = 1, area_size = 1, def = 0.9, mvspd = 1.2},
['warrior'] = {hp = 1.4, dmg = 1.1, aspd = 0.9, area_dmg = 1, area_size = 1, def = 1.25, mvspd = 0.9},
['mage'] = {hp = 0.6, dmg = 1.4, aspd = 1, area_dmg = 1.25, area_size = 1.2, def = 0.75, mvspd = 1},
['rogue'] = {hp = 0.8, dmg = 1.3, aspd = 1.1, area_dmg = 0.6, area_size = 0.6, def = 0.8, mvspd = 1.4},
['healer'] = {hp = 1.2, dmg = 1, aspd = 0.5, area_dmg = 1, area_size = 1, def = 1.2, mvspd = 1},
['enchanter'] = {hp = 1.2, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1.2, mvspd = 1.2},
['nuker'] = {hp = 0.9, dmg = 1, aspd = 0.75, area_dmg = 1.5, area_size = 1.5, def = 1, mvspd = 1},
['conjurer'] = {hp = 1, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1, mvspd = 1},
['psyker'] = {hp = 1.5, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 0.5, mvspd = 1},
['curser'] = {hp = 1, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 0.75, mvspd = 1},
['forcer'] = {hp = 1.25, dmg = 1.1, aspd = 0.9, area_dmg = 0.75, area_size = 0.75, def = 1.2, mvspd = 1},
['swarmer'] = {hp = 1.2, dmg = 1, aspd = 1.25, area_dmg = 1, area_size = 1, def = 0.75, mvspd = 0.75},
['voider'] = {hp = 0.75, dmg = 1.3, aspd = 1, area_dmg = 0.8, area_size = 0.75, def = 0.6, mvspd = 0.8},
['sorcerer'] = {hp = 0.8, dmg = 1.3, aspd = 1, area_dmg = 1.2, area_size = 1, def = 0.8, mvspd = 1},
['mercenary'] = {hp = 1, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1, mvspd = 1},
['explorer'] = {hp = 1, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1, mvspd = 1.25},
['seeker'] = {hp = 0.5, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1, mvspd = 0.3},
['mini_boss'] = {hp = 1, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1, mvspd = 0.3},
['enemy_critter'] = {hp = 1, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1, mvspd = 0.5},
['saboteur'] = {hp = 1, dmg = 1, aspd = 1, area_dmg = 1, area_size = 1, def = 1, mvspd = 1.4},
}
local ylb1 = function(lvl)
if lvl == 3 then return 'light_bg'
elseif lvl == 2 then return 'light_bg'
elseif lvl == 1 then return 'yellow'
else return 'light_bg' end
end
local ylb2 = function(lvl)
if lvl == 3 then return 'light_bg'
elseif lvl == 2 then return 'yellow'
else return 'light_bg' end
end
local ylb3 = function(lvl)
if lvl == 3 then return 'yellow'
else return 'light_bg' end
end
class_descriptions = {
['ranger'] = function(lvl) return '[' .. ylb1(lvl) .. ']3[light_bg]/[' .. ylb2(lvl) .. ']6 [fg]- [' .. ylb1(lvl) .. ']8%[light_bg]/[' .. ylb2(lvl) .. ']16% [fg]chance to release a barrage on attack to allied rangers' end,
['warrior'] = function(lvl) return '[' .. ylb1(lvl) .. ']3[light_bg]/[' .. ylb2(lvl) .. ']6 [fg]- [' .. ylb1(lvl) .. ']+25[light_bg]/[' .. ylb2(lvl) .. ']+50 [fg]defense to allied warriors' end,
['mage'] = function(lvl) return '[' .. ylb1(lvl) .. ']3[light_bg]/[' .. ylb2(lvl) .. ']6 [fg]- [' .. ylb1(lvl) .. ']-15[light_bg]/[' .. ylb2(lvl) .. ']-30 [fg]enemy defense' end,
['rogue'] = function(lvl) return '[' .. ylb1(lvl) .. ']3[light_bg]/[' .. ylb2(lvl) .. ']6 [fg]- [' .. ylb1(lvl) .. ']15%[light_bg]/[' .. ylb2(lvl) .. ']30% [fg]chance to crit to allied rogues, dealing [yellow]4x[] damage' end,
['healer'] = function(lvl) return '[' .. ylb1(lvl) .. ']2[light_bg]/[' .. ylb2(lvl) .. ']4 [fg]- [' .. ylb1(lvl) .. ']+15%[light_bg]/[' .. ylb2(lvl) .. ']+30% [fg] chance to create [yellow]+1[fg] healing orb on healing orb creation' end,
['enchanter'] = function(lvl) return '[' .. ylb1(lvl) .. ']2[light_bg]/[' .. ylb2(lvl) .. ']4 [fg]- [' .. ylb1(lvl) .. ']+15%[light_bg]/[' .. ylb2(lvl) .. ']+25% [fg]damage to all allies' end,
['nuker'] = function(lvl) return '[' .. ylb1(lvl) .. ']3[light_bg]/[' .. ylb2(lvl) .. ']6 [fg]- [' .. ylb1(lvl) .. ']+15%[light_bg]/[' .. ylb2(lvl) .. ']+25% [fg]area damage and size to allied nukers' end,
['conjurer'] = function(lvl) return '[' .. ylb1(lvl) .. ']2[light_bg]/[' .. ylb2(lvl) .. ']4 [fg]- [' .. ylb1(lvl) .. ']+25%[light_bg]/[' .. ylb2(lvl) .. ']+50% [fg]construct damage and duration' end,
['psyker'] = function(lvl) return '[' .. ylb1(lvl) .. ']2[light_bg]/[' .. ylb2(lvl) .. ']4 [fg]- [' .. ylb1(lvl) .. ']+2[light_bg]/[' .. ylb2(lvl) .. ']+4 [fg]total psyker orbs and [yellow]+1[fg] orb for each psyker' end,
['curser'] = function(lvl) return '[' .. ylb1(lvl) .. ']2[light_bg]/[' .. ylb2(lvl) .. ']4 [fg]- [' .. ylb1(lvl) .. ']+1[light_bg]/[' .. ylb2(lvl) .. ']+3 [fg]max curse targets to allied cursers' end,