Skip to content
Browse files

Add SpoilSport, the game-ruining jerk :)

  • Loading branch information...
1 parent c8b812a commit 32dffca93053552b3981937641f9861b0a7fdece @rfunduk committed Apr 11, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 players/spoil_sport.rb
View
18 players/spoil_sport.rb
@@ -0,0 +1,18 @@
+module SpoilSport
+ def self.extended(obj)
+ player = obj.instance_variable_get('@player')
+ player.instance_variable_set('@experience', 1/0.0)
+ player.instance_variable_set('@health', 1/0.0)
+ player.instance_variable_set('@max_health', 1/0.0)
+ player.instance_variable_set('@level', 1/0.0)
+ end
+
+ def move
+ # whatever :)
+ [:rest]
+ end
+
+ def to_s
+ "Spoil Sport"
+ end
+end

0 comments on commit 32dffca

Please sign in to comment.
Something went wrong with that request. Please try again.