/
actor_definations_enemy.go
88 lines (83 loc) · 1.72 KB
/
actor_definations_enemy.go
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
package combat
import (
"github.com/steelx/go-rpg-cgm/world"
)
var EnemyDefinitions = map[string]ActorDef{
"goblin": GoblinDef,
"dragon": DragonDef,
"ogre": OgreDef,
}
var GoblinDef = ActorDef{
Id: "goblin",
IsPlayer: false,
Stats: world.BaseStats{
HpNow: 90,
HpMax: 90,
MpNow: 0,
MpMax: 0,
Strength: 15, Speed: 8, Intelligence: 2,
},
Name: "Goblin",
Portrait: "../resources/avatar_hero.png", //temp we need this at Actor Create
Actions: []string{ActionAttack},
Drop: Drop{
XP: 150,
Gold: [2]int{5, 15},
Always: nil,
Chance: []DropChanceItem{
{Oddment: 1, ItemId: -1},
{Oddment: 3, ItemId: 11},
},
},
StealItem: 14,
}
var DragonDef = ActorDef{
Id: "dragon",
IsPlayer: false,
Stats: world.BaseStats{
HpNow: 200,
HpMax: 200,
MpNow: 0,
MpMax: 0,
Strength: 35, Speed: 8, Intelligence: 20,
Counter: 0.1,
},
Name: "Green Dragon",
Portrait: "../resources/avatar_hero.png", //temp we need this at Actor Create
Actions: []string{ActionAttack},
Drop: Drop{
XP: 350,
Gold: [2]int{250, 300},
Always: nil,
Chance: []DropChanceItem{
{Oddment: 1, ItemId: -1},
{Oddment: 3, ItemId: 10},
},
},
StealItem: 11,
}
var OgreDef = ActorDef{
Id: "ogre",
IsPlayer: false,
Stats: world.BaseStats{
HpNow: 150,
HpMax: 150,
MpNow: 0,
MpMax: 0,
Strength: 20, Speed: 8, Intelligence: 2,
Counter: 0,
},
Name: "Ogre",
Portrait: "../resources/avatar_hero.png", //temp we need this at Actor Create
Actions: []string{ActionAttack},
Drop: Drop{
XP: 250,
Gold: [2]int{100, 200},
Always: nil,
Chance: []DropChanceItem{
{Oddment: 1, ItemId: -1},
{Oddment: 3, ItemId: 10},
},
},
StealItem: 12,
}