void CustomIngredientImplementation::fillAttributeList(AttributeListMessage* alm, CreatureObject* object) { for (int i = 0; i < objectAttributes.size(); ++i) { String attrib; int value = getAttributeAndValue(attrib, i); alm->insertAttribute(attrib, value); } }
void ResourceSpawnImplementation::fillAttributeList(AttributeListMessage* alm, CreatureObject* object) { alm->insertAttribute("resource_class", getFinalClass()); for (int i = 0; i < spawnAttributes.size(); ++i) { String attrib; int value = getAttributeAndValue(attrib, i); alm->insertAttribute(attrib, value); } alm->insertInt(0); }
void ResourceSpawnImplementation::addStatsToDeedListBox(SuiListBox* suil) { suil->setPromptTitle("@veteran:resource_name"); //Resource Name suil->setPromptText("@veteran:confirm_choose_type"); //Please confirm that you would like to select this resource as your Veteran Reward Crate of Resources. Use the CANCEL button to go back and select a different resource. String tempname = "Name = " + spawnName; suil->addMenuItem(tempname); for (int i = 0; i < spawnAttributes.size(); ++i) { String attrib; int value = getAttributeAndValue(attrib, i); String tempstat = "@obj_attr_n:" + attrib + " = " + value; suil->addMenuItem(tempstat); } }
void ResourceSpawnImplementation::print() { info("**** Resource Data ****\n", true); info("Class: " + getFinalClass(), true); info("Name: " + spawnName, true); info("--------Classes--------", true); for (int i = 0; i < spawnClasses.size(); ++i) info(spawnClasses.get(i) + "(" + stfSpawnClasses.get(i) + ")", true); info("------Attributes-------", true); for (int i = 0; i < spawnAttributes.size(); ++i) { String attrib; int value = getAttributeAndValue(attrib, i); info(attrib + " " + value, true); } for (int i = 0; i < spawnMaps.size(); ++i) { info(spawnMaps.elementAt(i).getKey()); spawnMaps.get(i).print(); } info("***********************", true); }