From: DaveG <da...@us...> - 2005-10-28 17:57:21
|
Update of /cvsroot/planeshift/planeshift/src/server/bulkobjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23651/src/server/bulkobjects Modified Files: pscharacter.cpp Log Message: Maxing vitals on login (see history.txt) Index: pscharacter.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/bulkobjects/pscharacter.cpp,v retrieving revision 1.278 retrieving revision 1.279 diff -C2 -d -r1.278 -r1.279 *** pscharacter.cpp 27 Oct 2005 14:45:36 -0000 1.278 --- pscharacter.cpp 28 Oct 2005 17:57:13 -0000 1.279 *************** *** 1146,1149 **** --- 1146,1164 ---- RecalculateStats(); + + // TODO: Load last known vitals for players from db entry + if (false /*actor->GetSecurityLevel() == 0*/) + { + // Load player's vitals here + // (uncomment correct if argument) + } + else // Everyone else gets full to start + { + SetHitPoints(GetHitPointsMax()); + SetMana(GetManaMax()); + SetStamina(GetStaminaMax(true),true); + SetStamina(GetStaminaMax(false),false); + } + lastlogintime = row["last_login"]; faction_standings = row["faction_standings"]; |