[ogs-changes] dist/c++/ogs/cclasses Paladin.cpp,1.3,1.4
Status: Alpha
Brought to you by:
elemings
|
From: <ele...@us...> - 2003-04-08 21:43:41
|
Update of /cvsroot/ogs/dist/c++/ogs/cclasses
In directory sc8-pr-cvs1:/tmp/cvs-serv21226/c++/ogs/cclasses
Modified Files:
Paladin.cpp
Log Message:
See C++ ChangeLog (Apr 5 and 8) for details.
Index: Paladin.cpp
===================================================================
RCS file: /cvsroot/ogs/dist/c++/ogs/cclasses/Paladin.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Paladin.cpp 29 Mar 2003 02:10:26 -0000 1.3
--- Paladin.cpp 8 Apr 2003 21:43:05 -0000 1.4
***************
*** 34,37 ****
--- 34,38 ----
using ogs::core::Abilities;
using ogs::core::Ability;
+ using ogs::core::AbilityPtr;
using ogs::core::Character;
using ogs::core::Creature;
***************
*** 106,111 ****
Creature& creature = character.getCreature ();
Abilities& abilities = creature.getAbilities ();
! Ability* cha = abilities [Ability::CHA];
! if (cha != NULL) {
Modifier& modifier = cha->getModifier ();
if (modifier.getValue () > 0) {
--- 107,112 ----
Creature& creature = character.getCreature ();
Abilities& abilities = creature.getAbilities ();
! AbilityPtr cha = abilities [Ability::CHA];
! if (cha) {
Modifier& modifier = cha->getModifier ();
if (modifier.getValue () > 0) {
***************
*** 141,146 ****
Creature& creature = character.getCreature ();
Abilities& abilities = creature.getAbilities ();
! Ability* cha = abilities [Ability::CHA];
! if (cha != NULL) {
Modifier& modifier = cha->getModifier ();
Saves& saves = creature.getSaves ();
--- 142,147 ----
Creature& creature = character.getCreature ();
Abilities& abilities = creature.getAbilities ();
! AbilityPtr cha = abilities [Ability::CHA];
! if (cha) {
Modifier& modifier = cha->getModifier ();
Saves& saves = creature.getSaves ();
|