- Moved the OPTION defines from map.h to status.h (where they belong)

- Added back SC_XMAS to status.c (how was it... lost?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6550 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-05-10 14:38:12 +00:00
parent b6f88c5242
commit 9ddea7953a
5 changed files with 62 additions and 58 deletions

View File

@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/10
* Added back SC_XMAS to status.c, it got lost sometime during all the
previous reworkings. [Skotlex]
* Changed wedding costumes to use setoption rather than changebase.
[Skotlex]
* Modified setoption so that flag 1 or no flag adds an option, and flag 0

View File

@ -238,25 +238,6 @@ enum {
#define DEFAULT_AUTOSAVE_INTERVAL 60*1000
#define OPTION_SIGHT 0x0001
#define OPTION_HIDE 0x0002
#define OPTION_CLOAK 0x0004
#define OPTION_CART1 0x0008
#define OPTION_FALCON 0x0010
#define OPTION_RIDING 0x0020
#define OPTION_INVISIBLE 0x0040
#define OPTION_CART2 0x0080
#define OPTION_CART3 0x0100
#define OPTION_CART4 0x0200
#define OPTION_CART5 0x0400
#define OPTION_ORCISH 0x0800
#define OPTION_WEDDING 0x1000
#define OPTION_RUWACH 0x2000
#define OPTION_CHASEWALK 0x4000
#define OPTION_FLYING 0x8000
//TODO: Get these Missing options...
#define OPTION_SIGHTTRASHER 0x0001
//Specifies maps where players may hit each other
#define map_flag_vs(m) (map[m].flag.pvp || map[m].flag.gvg_dungeon || map[m].flag.gvg || (agit_flag && map[m].flag.gvg_castle))
//Specifies maps that have special GvG/WoE restrictions

View File

@ -4130,6 +4130,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
break;
case SC_WEDDING: //結婚用(結婚衣裳になって?くのが?いとか)
case SC_XMAS:
{
struct view_data *vd = status_get_viewdata(bl);
if (vd) {
@ -5016,6 +5017,7 @@ int status_change_end( struct block_list* bl , int type,int tid )
break;
case SC_WEDDING: //結婚用(結婚衣裳になって?くのが?いとか)
case SC_XMAS:
{
struct view_data *vd = status_get_viewdata(bl);
if (vd) {

View File

@ -441,6 +441,25 @@ enum {
#define OPT3_AURASHIELD 0x800 //Assumptio
#define OPT3_HEAT 0x1000 //Warmth Skills
#define OPTION_SIGHT 0x0001
#define OPTION_HIDE 0x0002
#define OPTION_CLOAK 0x0004
#define OPTION_CART1 0x0008
#define OPTION_FALCON 0x0010
#define OPTION_RIDING 0x0020
#define OPTION_INVISIBLE 0x0040
#define OPTION_CART2 0x0080
#define OPTION_CART3 0x0100
#define OPTION_CART4 0x0200
#define OPTION_CART5 0x0400
#define OPTION_ORCISH 0x0800
#define OPTION_WEDDING 0x1000
#define OPTION_RUWACH 0x2000
#define OPTION_CHASEWALK 0x4000
#define OPTION_FLYING 0x8000
//TODO: Get these Missing options...
#define OPTION_SIGHTTRASHER 0x0001
// パラメータ所得系 battle.c より移動
int status_get_class(struct block_list *bl);
int status_get_lv(struct block_list *bl);