lib/nerf_war.rb in lita-nerf-war-0.1.5 vs lib/nerf_war.rb in lita-nerf-war-0.1.6

- old
+ new

@@ -1,8 +1,8 @@ class NerfWar - BURN_UNITS = 'http://en.wikipedia.org/wiki/List_of_burn_centers_in_the_United_States' + BURN_UNITS = ['http://en.wikipedia.org/wiki/List_of_burn_centers_in_the_United_States', 'http://www.webmd.com/first-aid/tc/home-treatment-for-second-degree-burns-topic-overview'] FLAME_WEAPONS = ['flamethrower', 'flame thrower' 'napalm', 'willy pete', 'willie pete'] def initialize(response, target, weapon, custom_message_chance) @response = response @user = @response.user @@ -18,16 +18,16 @@ return if we_never_forget_vlad? shots = @weapon.downcase.include?('gatling') ? 5 : 1 1.upto(shots) do @response.reply shooting_message + ': ' + snarky_result - @response.reply BURN_UNITS if is_flame_weapon? + @response.reply BURN_UNITS[rand(BURN_UNITS.length)] if is_flame_weapon? end end def nuke - @response.reply ["#{@user.name} tosses a nuke into the room", "http://www.dudeiwantthat.com/omg/fools/nerf-nuke-12043.jpg"] + @response.reply ["#{@user.name} tosses a nuke into the room", "http://i.imgur.com/zNAAKqd.gif"] end def snarky_result targets = nil snarky_user_messages = I18n.translate("lita.handlers.nerf_war.specific_targets.#{@user.name}".downcase) @@ -53,10 +53,10 @@ @response.reply [shooting_message, "http://www.quickmeme.com/img/22/221f53ddeb8084c01d4d50c966df793d30b8392c68b7cb0a5ec50a635e01cff2.jpg"] return true end false end - + def you_will_put_your_eye_out? if is_self? @response.reply "You'll put your eye out!" return true end \ No newline at end of file