Advertisement
nio_kasgami

Untitled

Aug 24th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.33 KB | None | 0 0
  1. class Archeia_Nessiah < Entity_Base
  2.     attr_accessor :mood
  3.     def execute
  4.         super
  5.         @mood = :angry
  6.         check_mood
  7.     end
  8.  
  9.     def problem?
  10.         return true
  11.     end
  12.     def check_mood
  13.         if problem?
  14.             @mood = :angry
  15.         else
  16.             @mood = :happy
  17.         end
  18.     end
  19. end
  20.  
  21. def init
  22.     $archeia  = Archeia_Nessiah.new
  23. end
  24.  
  25. init
  26.  
  27. $archeia.problem? = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement