Advertisement
qben360

Untitled

Apr 1st, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. nodeValue = (char*)xmlGetProp(tmp, (const xmlChar *)"exhaustion");
  2. if(nodeValue) {
  3. exhaustionTicks = atoi(nodeValue)*1.5;
  4. xmlFreeOTSERV(nodeValue);
  5. }
  6.  
  7. nodeValue = (char*)xmlGetProp(tmp, (const xmlChar *)"cycleticks");
  8. if(nodeValue){
  9. cycleTicks = atoi(nodeValue)*1.5;
  10. xmlFreeOTSERV(nodeValue);
  11. }
  12.  
  13. nodeValue = (char*)xmlGetProp(tmp, (const xmlChar *)"probability");
  14. if(nodeValue){
  15. probability = atoi(nodeValue)*0.75;
  16. xmlFreeOTSERV(nodeValue);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement