Difference between revisions of "Dad sea monkee weakness"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(r12255)
 
imported>Bale
(rounds 1-10 only)
Line 15: Line 15:
 
}}|
 
}}|
  
function_description=Returns the elemental weakness of {{kolwiki|Dad Sea Monkee}} for a given {{pspan|round}} of combat.|
+
function_description=Returns the elemental weakness of {{kolwiki|Dad Sea Monkee}} for a given {{pspan|round}} of combat. This only works for rounds 1 to 10.|
  
 
code1={{CodeSample|
 
code1={{CodeSample|
Line 33: Line 33:
 
}
 
}
  
for i from 1 to 11
+
for i from 1 to 10
 
   print( "On round "+ i +" cast " + element_to_skill(i) )
 
   print( "On round "+ i +" cast " + element_to_skill(i) )
 
</syntaxhighlight>}}|
 
</syntaxhighlight>}}|

Revision as of 05:11, 13 November 2014

Function Syntax

element dad_sea_monkee_weakness(int round )

  • round is the round of combat in question

Returns the elemental weakness of Dad Sea Monkee for a given round of combat. This only works for rounds 1 to 10.

Code Sample

Print a description of how to kill the current Dad Sea Monkee.

skill element_to_skill( int round ) {
   switch( dad_sea_monkee_weakness(round) ) {
   case $element[hot]:    return $skill[Awesome Balls of Fire];
   case $element[cold]:   return $skill[Snowclone];
   case $element[stench]: return $skill[Eggsplosion];
   case $element[sleaze]: return $skill[Grease Lightning];
   case $element[spooky]: return $skill[Raise Backup Dancer];
   case $element[none]:   return $skill[Toynado];
   }
}

for i from 1 to 10
   print( "On round "+ i +" cast " + element_to_skill(i) )

See Also

get_ccs_action() | monster_element()