Difference between revisions of "Mmg take bet"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
m
 
Line 1: Line 1:
{{
+
This function was removed when the make money game was removed from KoL.
#vardefine:name|mmg_take_bet}}{{
 
#vardefine:return_type|int}}{{
 
  
FunctionPage|
+
Accepts the bet with the specified {{pspan|bet_id}}, using meat from inventory if {{pspan|storage}} is false or from Hagnk's storage if it is true. Returns the bet amount (as a negative number) if you lose the bet, and the bet amount minus the house cut (as a positive number) if you win.
name={{#var:name}}|
 
 
 
function1={{Function|
 
name={{#var:name}}|
 
aggregate={{#var:aggregate}}|
 
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}|
 
parameter1={{Param|int|bet_id}}|
 
parameter2={{Param|boolean|storage}}|
 
p1desc={{Pspan|bet_id}} is the bet ID # to take|
 
p2desc={{Pspan|storage}} is true if using meat from Hagnk's storage or false to use meat from inventory |
 
}}|
 
 
 
function_description=Accepts the bet with the specified {{pspan|bet_id}}, using meat from inventory if {{pspan|storage}} is false or from Hagnk's storage if it is true. Returns the bet amount (as a negative number) if you lose the bet, and the bet amount minus the house cut (as a positive number) if you win.|
 
 
 
needscode=yes|
 
 
 
}}
 
 
 
[[Category:Money Making Game]]
 

Latest revision as of 19:54, 24 April 2021

This function was removed when the make money game was removed from KoL.

Accepts the bet with the specified bet_id, using meat from inventory if storage is false or from Hagnk's storage if it is true. Returns the bet amount (as a negative number) if you lose the bet, and the bet amount minus the house cut (as a positive number) if you win.