Rocker8956
10-02-2008, 01:58 PM
Does anyone see an issue with me adding
#include "database.h" to Zone\features.h ?
If not should I put it before or after
#ifndef FEATURES_H
#define FEATURES_H
(Sorry if that was a dumb question)
I want to include database.h so some of the following are pulled from the database instead of hard coded
#define ZONE_AUTOSHUTDOWN_DELAY 5000
That will allow us to keep a dynamic zone open for longer than 5 seconds after it is empty (I think)
Some others that should probably be pulled from the database (unless it would add to much overhead)
//the min ratio at which a mob's speed is reduced
#define FLEE_HP_MINSPEED 10
//number of tics to try to run straight away before looking again
#define FLEE_RUN_DURATION 1000
//number of miliseconds between when a mob will check its flee state
//this is only checked when the mob is damaged.
#define FLEE_CHECK_TIMER 2000
#define HIGHEST_CAN_SET_SKILL 400
#define SKILL_MAX_LEVEL 75
#define SACRIFICE_MIN_LEVEL 50
#define SACRIFICE_ITEMID 9963
#define MIN_RANGED_ATK_RANGE 25
Some of these are probably no longer referenced in the code. (I did not have time to check them all) Also, there are a lot more in feature.h that I did not paste into this post.
#include "database.h" to Zone\features.h ?
If not should I put it before or after
#ifndef FEATURES_H
#define FEATURES_H
(Sorry if that was a dumb question)
I want to include database.h so some of the following are pulled from the database instead of hard coded
#define ZONE_AUTOSHUTDOWN_DELAY 5000
That will allow us to keep a dynamic zone open for longer than 5 seconds after it is empty (I think)
Some others that should probably be pulled from the database (unless it would add to much overhead)
//the min ratio at which a mob's speed is reduced
#define FLEE_HP_MINSPEED 10
//number of tics to try to run straight away before looking again
#define FLEE_RUN_DURATION 1000
//number of miliseconds between when a mob will check its flee state
//this is only checked when the mob is damaged.
#define FLEE_CHECK_TIMER 2000
#define HIGHEST_CAN_SET_SKILL 400
#define SKILL_MAX_LEVEL 75
#define SACRIFICE_MIN_LEVEL 50
#define SACRIFICE_ITEMID 9963
#define MIN_RANGED_ATK_RANGE 25
Some of these are probably no longer referenced in the code. (I did not have time to check them all) Also, there are a lot more in feature.h that I did not paste into this post.