[ogs-changes] dist/c++/ogs/spells/conjurations CureWounds.cpp,1.2,1.3 CureWounds.h,1.1,1.2
Status: Alpha
Brought to you by:
elemings
|
From: <ele...@us...> - 2003-04-13 05:28:49
|
Update of /cvsroot/ogs/dist/c++/ogs/spells/conjurations
In directory sc8-pr-cvs1:/tmp/cvs-serv9867/spells/conjurations
Modified Files:
CureWounds.cpp CureWounds.h
Log Message:
See C++ ChangeLog (Apr 13) for details.
Index: CureWounds.cpp
===================================================================
RCS file: /cvsroot/ogs/dist/c++/ogs/spells/conjurations/CureWounds.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CureWounds.cpp 25 Mar 2003 06:13:14 -0000 1.2
--- CureWounds.cpp 13 Apr 2003 05:28:46 -0000 1.3
***************
*** 105,114 ****
if (!checkTargetWillSave () &&
!checkTargetSpellResistance ()) {
! int currentHealth = _target->getCurrentHealth ();
! _target->setCurrentHealth (currentHealth - hitPoints);
}
} else {
! int currentHealth = _target->getCurrentHealth ();
! _target->setCurrentHealth (currentHealth + hitPoints);
}
}
--- 105,116 ----
if (!checkTargetWillSave () &&
!checkTargetSpellResistance ()) {
! Entity::Health health = _target->getHealth ();
! health.first -= hitPoints;
! _target->setHealth (health);
}
} else {
! Entity::Health health = _target->getHealth ();
! health.first += hitPoints;
! _target->setHealth (health);
}
}
Index: CureWounds.h
===================================================================
RCS file: /cvsroot/ogs/dist/c++/ogs/spells/conjurations/CureWounds.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CureWounds.h 23 Mar 2003 22:14:36 -0000 1.1
--- CureWounds.h 13 Apr 2003 05:28:46 -0000 1.2
***************
*** 48,52 ****
public:
/** Level of caster. */
! typedef ogs::core::Experience::Level CasterLevel;
/** Target of cure wounds spell. */
--- 48,52 ----
public:
/** Level of caster. */
! typedef ogs::core::XP::Level CasterLevel;
/** Target of cure wounds spell. */
|