From: Anders R. <ma...@us...> - 2005-01-30 21:04:15
|
Update of /cvsroot/planeshift/planeshift/src/common/rpgrules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23016/src/common/rpgrules Modified Files: vitals.h Log Message: - Added visibility range to natural resources. The natural_resources table have been changed to include a visible_range. - Added clamping of probabilitis in the HandleProduction function in the workmanager. This include 0.0 probability for distance to find a resource if outside resource range. Still there will be a 0.1 probability to find the resource within the visible_range. - Changed Set/GetLastMiningPosition to Set/GetLastProductionPosition since this is used for general production events and not only mining. To allow for easy extending to /chop wood, /pick mushrooms, ... - Changed the Set[HP|Mana|Fatigue] function to not allow to set higher value than max for thise. If a poision should increas any of this values higher than max a change to the max value should be done first in the potion script. - Added view/edit of the min_faction field in the trainer_skills table to the serverconsole. Index: vitals.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/rpgrules/vitals.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** vitals.h 22 Jan 2005 23:43:49 -0000 1.2 --- vitals.h 30 Jan 2005 21:03:34 -0000 1.3 *************** *** 38,42 **** VITAL_MANA, VITAL_FATIGUE, ! VITAL_COUNT }; --- 38,42 ---- VITAL_MANA, VITAL_FATIGUE, ! VITAL_COUNT // Count used to build a array of vitals, not a legal vital name }; |