Closed gluxon closed 11 years ago
Give the ability to define the chance of an event occurring. Snippet below from wolfbot-new
# HIT MISS SUICIDE
GUN_CHANCES = ( 5/7 , 1/7 , 1/7 ) DRUNK_GUN_CHANCES = ( 2/7 , 4/7 , 1/7 ) MANSLAUGHTER_CHANCE = 1/5 # ACCIDENTAL HEADSHOT (FATAL)
Chances tester
http://pastebin.com/jsNFbdjj
Give the ability to define the chance of an event occurring. Snippet below from wolfbot-new
GUN_CHANCES = ( 5/7 , 1/7 , 1/7 ) DRUNK_GUN_CHANCES = ( 2/7 , 4/7 , 1/7 ) MANSLAUGHTER_CHANCE = 1/5 # ACCIDENTAL HEADSHOT (FATAL)