⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 px_ls_compound.h

📁 MMORPG游戏服务器端架构及函数
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -