forked from elonafoobar/elonafoobar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuff.hpp
101 lines (70 loc) · 1.9 KB
/
buff.hpp
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
#pragma once
#include <unordered_map>
#include "cat.hpp"
namespace elona
{
struct buff_data
{
enum class type_t
{
buff,
hex,
food,
};
int id;
cat::ref self;
type_t type;
cat::ref duration;
cat::ref on_refresh;
};
class buff_db;
namespace cat
{
template <>
struct cat_db_traits<buff_db>
{
using id_type = int;
using data_type = buff_data;
static constexpr const char* filename = u8"buff.lua";
static constexpr const char* table_name = u8"buff";
};
} // namespace cat
class buff_db : public cat::cat_db<buff_db>
{
public:
buff_db();
void define(lua_State* L);
};
extern buff_db the_buff_db;
// 1 "聖なる盾", "Holy Shield"
// 2 "沈黙の霧", "Mist of Silence"
// 3 "リジェネレーション", "Regeneration"
// 4 "元素保護", "Elemental Shield"
// 5 "加速", "Speed"
// 6 "鈍足", "Slow"
// 7 "英雄", "Hero"
// 8 "脆弱の霧", "Mist of Frailness"
// 9 "元素の傷跡", "Element Scar"
// 10 "ホーリーヴェイル", "Holy Veil"
// 11 "ナイトメア", "Nightmare"
// 12 "知者の加護", "Divine Wisdom"
// 13 "天罰", "Punishment"
// 14 "ルルウィの憑依", "Lulwy's Trick"
// 15 "インコグニート", "Incognito"
// 16 "死の宣告", "Death Word"
// 17 "ブースト", "Boost"
// 18 "契約", "Contingency"
// 19 "幸運", "Luck"
// 20 "筋力の成長", "Grow Strength"
// 21 "耐久の成長", "Grow Endurance"
// 22 "器用の成長", "Grow Dexterity"
// 23 "感覚の成長", "Grow Perception"
// 24 "習得の成長", "Grow Learning"
// 25 "意思の成長", "Grow Will"
// 26 "魔力の成長", "Grow Magic"
// 27 "魅力の成長", "Grow Charisma"
// 28 "速度の成長", "Grow Speed"
int buff_find(int prm_799, int prm_800);
int buff_add(int prm_801, int prm_802, int prm_803, int prm_804);
void buff_delete(int prm_805, int prm_806);
} // namespace elona