chuyiwen_gmsv/include/char_data.h

127 lines
3.6 KiB
C
Raw Normal View History

2016-12-24 08:45:52 +08:00
#ifndef __CHAR_DATA_H__
#define __CHAR_DATA_H__
#include "item.h"
#include "char.h"
#define CHAR_CLASS01_PASSLV 20
#define BATEBAN 2
#define FIRSTPOSITIONMAXINDEX 1
#define ELDERINDEXSTART FIRSTPOSITIONMAXINDEX+BATEBAN+1
typedef struct tagLevelUpPattern
{
#if 1
struct Exptbl{
int origin;
int multi;
}exptbl[3];
int hpupminpoint; /* hp <20><>ؤ<EFBFBD><D8A4><EFBFBD><EFBFBD><>*/
int hpupmaxpoint; /* hp <20><>ؤ<EFBFBD><D8A4><EFBFBD><EFBFBD><>*/
int needexp; /* ۢئ<DBA2><D8A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#else
int uppoint[5];
#endif
}LevelUpPattern;
/*====================<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>====================*/
BOOL CHAR_getDefaultChar( Char* nc, int imagenumber );
/*====================<3D><> <20><> <20><> į׸<C4AF><D7B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>====================*/
int CHAR_getNewImagenumberFromEquip( int basebaseimagenumber,
ITEM_CATEGORY category );
/*==================== <20><> į ٯ -> į<><C4AF><EFBFBD><EFBFBD>====================*/
//void CHAR_initSeekGraphicNumberFromString();
int CHAR_seekGraphicNumberFromString( char* string );
/*====================ƽ<>ҷ¼<D2B7><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>====================*/
BOOL CHAR_getInitElderPosition( Char* ch,int hometown);
BOOL CHAR_getElderPosition( int elderindex, int* fl, int* x, int* y );
void CHAR_setInitValues( Char* ch );
/*==================== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>====================*/
typedef enum
{
CHAR_INVAREA,
CHAR_CANNOTDROPAREA,
CHAR_CANNOTMAGICAREA,
CHAR_AREAKIND_NONE,
}CHAR_AREAKIND;
BOOL CHAR_initInvinciblePlace( char* filename );
BOOL CHAR_isCannotMagicArea( int floor , int x, int y, int magicnum );
BOOL CHAR_initAppearPosition( char* filename );
BOOL CHAR_isInvincibleArea( int floor , int x, int y );
BOOL CHAR_isAppearPosition( int floor, int *x, int *y);
BOOL CHAR_isCannotDropArea( int floor , int x, int y );
/* Ӯ <20><><EFBFBD><EFBFBD> */
BOOL CHAR_ElderSetPosition( int elderindex ,int fl,int x ,int y);
/*************************************************
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ì<EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*************************************************/
int GetEnemyExp( int level );
int CHAR_GetLevel();
int CHAR_GetLevelExp( int charaindex, int level );
int CHAR_GetOldLevelExp( int level);
int CHAR_LevelUpCheck( int charaindex , int toindex);
int CHAR_PetLevelUp( int petindex );
#define CHAR_PetLevelUpExInfc(petindex, lv) CHAR_PetLevelUp(petindex );
BOOL CHAR_checkFaceImageNumber( int imagenumber, int faceimagenumber);
BOOL CHAR_checkPlayerImageNumber( int imagenumber);
int CHAR_PetTakeLevelUp( int petindex, int lv); //ǿ<>Ƴ<EFBFBD><C6B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int CHAR_PetTakeDrop( int petindex, int floor, int ox, int oy); //ǿ<>ƶ<EFBFBD><C6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#ifdef _NPC_FUSION
int PETFUSION_FusionPetSub( int charaindex, int Subindex1, int Subindex2, int *work, int *skill);
BOOL PETFUSION_FusionPetMain( int charaindex, int Mainindex, int *work, int *skill);
BOOL PETFUSION_DelPet( int toindex, int Mainindex, int Subindex1, int Subindex2, int flg);
int PETFUSION_Evolution( int charaindex, int petindex);
#endif
int PETTRANS_PetTransManStatus( int toindex, int petindex1, int petindex2);
#ifdef _PET_2TRANS
int NPC_PetTransManGetAns( int total1, int total2, int LV, int rank, int tran);
#else
int NPC_PetTransManGetAns( int total1, int total2, int LV, int rank);
#endif //_PET_2TRANS
#ifdef _CHIKULA_STONE
void CHAR_AutoChikulaStone( int charaindex, int Dflg);
#endif
#ifdef _STATUS_WATERWORD //ˮ<><CBAE><EFBFBD><EFBFBD>״̬
void CHAR_CheckWaterStatus( int charaindex);
#endif
int CHAR_findSurplusPetBox( int charaindex );
#ifdef _USER_EXP_CF
void setNeedLevelUpTbls(int level,int exp);
void setMaxLevel(int level);
#endif
#ifdef _FM_METAMO
void CHAR_ReMetamo( int charaindex );
#endif
#ifdef _NEW_PLAYER_RIDE
void CHAR_PlayerRide( int charaindex );
#endif
#endif