This repository was archived by the owner on Jul 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreadme.lks
More file actions
98 lines (97 loc) · 2.61 KB
/
readme.lks
File metadata and controls
98 lines (97 loc) · 2.61 KB
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
//--------------------------------
//------------ ia ----------------
//--------------------------------
/*
* if turn eq 1
* - init :
* - get best chip : EFFECT_DAMAGE
* - get best range chip : EFFECT_DAMAGE
* - get best chip : EFFECT_BUFF_STRENGTH
* - get best chip : EFFECT_BUFF_AGILITY
*
* if life lt 25% of total life
* - heal :
* - get chips : EFFECT_HEAL
* - loop on chips :
* - get best chip
* - use best chip
* else
* - head wounded ally :
* - get ally which life lt 50% sort by life
* - if can heal :
* - heal
* - else :
* - move torward closest cell to use heal cheap
*
* use as many chips as possible :
* - EFFECT_ABSOLUTE_SHIELD
* - EFFECT_ANTIDOTE
* - EFFECT_BOOST_MAX_LIFE
* - EFFECT_BUFF_AGILITY
* - EFFECT_BUFF_FORCE
* - EFFECT_BUFF_RESISTANCE
* - EFFECT_BUFF_STRENGTH
* - EFFECT_RELATIVE_SHIELD
*
* summon bulb :
* - get chips : EFFECT_SUMMON
* - sort by cooldown ASC
* - loop on chips : EFFECT_SUMMON
* - get cell to summon
* - if can use chip on cell and register canSummon
* - summon :
* - if result is TOO_MANY set register canSummon to false
*
* if leek is the leader
* - send target to allies : MESSAGE_ATTACK
*
* attack :
* - equip best weapon
* - if can use current weapon :
* - while enemy is alive and can use weapon :
* - use weapon on enemy
* - if enemy is die :
* - get new enemy
* - attack()
* - else if can't use current weapon and can use damage chip :
* - while enemy is alive and can use damage chip :
* - if register useChipDamage is true :
* - use chip
* - if enemy is die :
* - get new enemy
* - if enemy is not lt than before :
* - set register useChipDamage to false
* - attack()
* - else if can't use current weapon and can use range damage chip :
* - while enemy is alive and can use range damage chip :
* - if register useChipDamage is true :
* - use chip
* - if enemy is die :
* - get new enemy
* - if enemy is not lt than before :
* - set register useChipDamage to false
* - attack()
* - else if should i move to attack and (enemy alive and distance with enemy gt 8) and can't use current weapon and damage chips but got TPs :
* - move torward enemy
* - attack()
* - else :
* - return
*
* run away :
* - if enemy is alive :
* - if is on same line with enemy :
* - move away from line
* - else :
* - move away from enemies
*
* if life lt total life
* - heal :
* - get chips : EFFECT_HEAL
* - loop on chips : EFFECT_HEAL
* - get best chip : EFFECT_HEAL
* - use best chip : EFFECT_HEAL
*
* statistics :
* - get total operations
*
*/