| 850 | } |
| 851 | |
| 852 | void RenderManager::rrScaleCreature(Creature& creature) |
| 853 | { |
| 854 | if(creature.getEntityNode() == nullptr) |
| 855 | { |
| 856 | OD_LOG_ERR("creature=" + creature.getName()); |
| 857 | return; |
| 858 | } |
| 859 | |
| 860 | Ogre::Real scaleFactor = static_cast<Ogre::Real>( |
| 861 | 1.0 + 0.02 * static_cast<double>(creature.getLevel())); |
| 862 | creature.getEntityNode()->setScale(Ogre::Vector3::UNIT_SCALE * scaleFactor); |
| 863 | } |
| 864 | |
| 865 | void RenderManager::rrCreateWeapon(Creature* curCreature, const Weapon* curWeapon, const std::string& hand) |
| 866 | { |
no test coverage detected