-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path02_caves_of_fear.txt
More file actions
42 lines (34 loc) · 860 Bytes
/
02_caves_of_fear.txt
File metadata and controls
42 lines (34 loc) · 860 Bytes
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
/*
Copyright © 2019-2022, Matjaž Guštin
<dev@matjaz.it> <https://matjaz.it>
Released under the BSD 3-clause license.
Level: Caves of fear
*/
var loadouts = import my/loadouts
func equip_melee()
equipL sword *10
equipR shield *10 fire
func equip_dashing()
equipL sword *10
equipR shield *10 dashing
func equip_staff()
equip staff *8 ice
func equip_ranged_healing()
equipL crossbow *10
equipR ouroboros
?loc = caves
?foe ! boss // Small enemies
?hp = maxhp | foe.distance <= 23
// Healed completely or enemy too close
equip_staff()
:
// Try to heal while attacking from afar
equip_ranged_healing()
:?foe = boss // Bolesh, the cunning
?foe.distance > 10
equip_dashing()
:
equip_melee()
:?hp < 10
activate potion
loadouts.healwalk()