Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- changeTargetChance = 0;
- targetStrategiesNearestPercent = 100;
- targetStrategiesLowerHPPercent = 0;
- targetStrategiesMostDamagePercent = 0;
- targetStrategiesRandom = 0;
- scriptList.clear();
- }
- }
- else if(xmlStrcmp(p->name, (const xmlChar*)"targetstrategies") == 0){
- if(readXMLInteger(p, "nearest", intValue)){
- mType->targetStrategiesNearestPercent = std::max(1, intValue);
- }
- else{
- SHOW_XML_WARNING("Missing targetStrategiesNearestPercent");
- }
- if(readXMLInteger(p, "health", intValue)){
- mType->targetStrategiesLowerHPPercent = std::max(1, intValue);
- }
- else{
- SHOW_XML_WARNING("Missing targetStrategiesLowerHPPercent");
- }
- if(readXMLInteger(p, "damage", intValue)){
- mType->targetStrategiesMostDamagePercent = std::max(1, intValue);
- }
- else{
- SHOW_XML_WARNING("Missing targetStrategiesMostDamagePercent");
- }
- if(readXMLInteger(p, "random", intValue)){
- mType->targetStrategiesRandom = std::max(1, intValue);
- }
- else{
- SHOW_XML_WARNING("Missing targetStrategiesRandom");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement