px_ls_compound.h

来自「MMORPG游戏服务器端架构及函数」· C头文件 代码 · 共 41 行

H
41 行
字号
#pragma	  once

/* must been first include begin */
#include "..\ProjectX_Common\ProjectX_Copyright.h"
#include "..\ProjectX_Common\ProjectX_Common.h"
/* must been first include end */

/* std and common include */
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>


#include "px_ls_item.h"
/*
*	合成
*	约定:
*		用于合成的道具数量不能超过6种,每一种合成都有相应的成功率,合成后的道具属性基于随机选择,
*		每次合成都必须有一种或者以上的宝石道具的参与
*		若合成等级低,失败时原基础道具不消失,否则所有原道具消失
*		合成后原道具消失,新道具产生
*/
typedef struct tagCompound_Base {
	int			index;
	int			item_base_orginal;
	int			item_suffix[5];
	byte		num_item_suffix_req;
	int			item_base_new;
	float		succ_ratio;
	BOOL		fix_item_new;
	int			money_req;
	WORD		level_req;
}COMPOUND_BASE, * LPCOMPOUND_BASE;

typedef struct tagCompound {
	ITEM_INVENTORY item_compound[4][8];
	byte		compound_type;			//合成类型,由客户端发送时附加提供
	int			last_handled_frame;
}COMPOUND, * LPCOMPOUND;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?