Advertisement
TheTintin

getValueBoostEffect

Oct 21st, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Détermine la valeur d'un effet supplémentaire par une puce sur un poireau
  3.  
  4. Paramètres  
  5. id : id du poireau concerné
  6. effect : l'effet recherché
  7.  
  8. Opérations : Presque 50
  9. Niveau : 1
  10.  
  11. Auteur : Canartichoo
  12. */
  13.  
  14. function getValueBoostEffect(id, effectId)
  15. {
  16.     for(var effect in getLaunchedEffects(id))
  17.     {
  18.         if(effect[0] == effectId)
  19.             return effect[1];
  20.     }
  21.     return 0;
  22. }
  23.  
  24. /*
  25. Exemple d'utilisation :
  26. var boostShieldAbsolu = getValueBoostEffect(getAIID(), EFFECT_ABSOLUTE_SHIELD);
  27. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement