39 #include "Core-Level-JR.h"
41 void rpgPotion::load(
class laPropertyList* pElement)
43 rpgItem::load(pElement);
45 color = pElement->getParent()->getColor(
"color");
46 dDuration = dDurationReminder = pElement->getDouble(
"duration");
50 dMod_Speed = pElement->getDouble(
"mod-Speed");
51 dMod_JPower = pElement->getDouble(
"mod-JPower");
52 dMod_SPower = pElement->getDouble(
"mod-SPower");
54 dMod_AP = pElement->getDouble(
"mod-AP");
55 dMod_DP = pElement->getDouble(
"mod-DP");
57 dMod_XP = pElement->getDouble(
"mod-XP");
61 bShrink = pElement->getBool(
"mod-shrink");
62 bLevitate = pElement->getBool(
"mod-levitate");
63 bGrasshopper = pElement->getBool(
"mod-grashopper");
64 bDrunk = pElement->getBool(
"mod-drunk");
115 void rpgPotion::createIcon()
117 pIcon =
new uiIcon3D(
new uiPotionDescriptor(
this ) );
GUI icon object that can siplay 3D models as icons.