summaryrefslogtreecommitdiff
path: root/src/emap/struct/itemdext.h
blob: 65f0729414cc5e0700b0f56c9955159e1a93e9d3 (plain) (blame)
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
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers

#ifndef EVOL_MAP_ITEMDEXT
#define EVOL_MAP_ITEMDEXT

struct ItemCardExt
{
    unsigned short id;
    unsigned short amount;
};

struct ItemdExt
{
    int floorLifeTime;

    int requiredStr;
    int requiredAgi;
    int requiredVit;
    int requiredInt;
    int requiredDex;
    int requiredLuk;
    int requiredMaxHp;
    int requiredMaxSp;
    int requiredAtk;
    int requiredMAtkMin;
    int requiredMAtkMax;
    int requiredDef;
    int requiredMDef;
    int requiredSkill;

    int useEffect;
    int useFailEffect;
    int unequipEffect;
    int unequipFailEffect;

    int minRange;

    int tmpUseType;

    VECTOR_DECL(int) allowedAmmo;
    VECTOR_DECL(struct ItemCardExt) allowedCards;
    struct script_code *dropScript;
    struct script_code *takeScript;
    struct script_code *insertScript;

    int16_t subX;
    int16_t subY;
    bool allowPickup;
    bool charmItem;
};

#endif  // EVOL_MAP_ITEMDEXT