forked from teamnwah/openmw-tes3coop
fixed typo getCapacity method
This commit is contained in:
parent
d3a53ae0b8
commit
e9ea1fba4e
8 changed files with 8 additions and 8 deletions
|
@ -180,7 +180,7 @@ namespace MWClass
|
|||
return info;
|
||||
}
|
||||
|
||||
float Container::getCapactiy (const MWWorld::Ptr& ptr) const
|
||||
float Container::getCapacity (const MWWorld::Ptr& ptr) const
|
||||
{
|
||||
ESMS::LiveCellRef<ESM::Container, MWWorld::RefData> *ref =
|
||||
ptr.get<ESM::Container>();
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace MWClass
|
|||
virtual std::string getScript (const MWWorld::Ptr& ptr) const;
|
||||
///< Return name of the script attached to ptr
|
||||
|
||||
virtual float getCapactiy (const MWWorld::Ptr& ptr) const;
|
||||
virtual float getCapacity (const MWWorld::Ptr& ptr) const;
|
||||
///< Return total weight that fits into the object. Throws an exception, if the object can't
|
||||
/// hold other objects.
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ namespace MWClass
|
|||
return info;
|
||||
}
|
||||
|
||||
float Creature::getCapactiy (const MWWorld::Ptr& ptr) const
|
||||
float Creature::getCapacity (const MWWorld::Ptr& ptr) const
|
||||
{
|
||||
const MWMechanics::CreatureStats& stats = getCreatureStats (ptr);
|
||||
return stats.mAttributes[0].getModified()*5;
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace MWClass
|
|||
virtual std::string getScript (const MWWorld::Ptr& ptr) const;
|
||||
///< Return name of the script attached to ptr
|
||||
|
||||
virtual float getCapactiy (const MWWorld::Ptr& ptr) const;
|
||||
virtual float getCapacity (const MWWorld::Ptr& ptr) const;
|
||||
///< Return total weight that fits into the object. Throws an exception, if the object can't
|
||||
/// hold other objects.
|
||||
|
||||
|
|
|
@ -324,7 +324,7 @@ namespace MWClass
|
|||
return info;
|
||||
}
|
||||
|
||||
float Npc::getCapactiy (const MWWorld::Ptr& ptr) const
|
||||
float Npc::getCapacity (const MWWorld::Ptr& ptr) const
|
||||
{
|
||||
const MWMechanics::CreatureStats& stats = getCreatureStats (ptr);
|
||||
return stats.mAttributes[0].getModified()*5;
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace MWClass
|
|||
///< Return desired movement vector (determined based on movement settings,
|
||||
/// stance and stats).
|
||||
|
||||
virtual float getCapactiy (const MWWorld::Ptr& ptr) const;
|
||||
virtual float getCapacity (const MWWorld::Ptr& ptr) const;
|
||||
///< Return total weight that fits into the object. Throws an exception, if the object can't
|
||||
/// hold other objects.
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ namespace MWWorld
|
|||
throw std::logic_error ("value not supported by this class");
|
||||
}
|
||||
|
||||
float Class::getCapactiy (const MWWorld::Ptr& ptr) const
|
||||
float Class::getCapacity (const MWWorld::Ptr& ptr) const
|
||||
{
|
||||
throw std::runtime_error ("capacity not supported by this class");
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ namespace MWWorld
|
|||
///< Return trade value of the object. Throws an exception, if the object can't be traded.
|
||||
/// (default implementation: throws an exception)
|
||||
|
||||
virtual float getCapactiy (const MWWorld::Ptr& ptr) const;
|
||||
virtual float getCapacity (const MWWorld::Ptr& ptr) const;
|
||||
///< Return total weight that fits into the object. Throws an exception, if the object can't
|
||||
/// hold other objects.
|
||||
/// (default implementation: throws an exception)
|
||||
|
|
Loading…
Reference in a new issue