Advertisement
dsiver144

Untitled

Apr 29th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1.  
  2. module DSIVER144
  3. module CARD_GAME_SYSTEM
  4.  
  5. REGEXPS = []
  6. REGEXPS[1] = /<card_id:\s*(\d+)>/i
  7. REGEXPS[2] = /<card_element:\s*(\w+)>/i
  8. REGEXPS[3] = /<card_power:\s*(\d+)>/i
  9. REGEXPS[4] = /<card_hp:\s*(\d+)>/i
  10. REGEXPS[5] = /<card_effect:\s*(\d+)>/i
  11. end
  12.  
  13. end
  14. end
  15.  
  16.  
  17. class DSI_Card
  18.  
  19. attr_accessor :id
  20. attr_accessor :element
  21. attr_accessor :effects
  22. attr_accessor :power
  23. attr_accessor :hp
  24. attr_accessor :bitmap_name
  25.  
  26. def initialize(id,element,effects,power,hp,bitmap_name)
  27. @id = id
  28. @element = element
  29. @effects = effects
  30. @power = power
  31. @hp = hp
  32. @bitmap_name = bitmap_name
  33. end
  34.  
  35. end
  36.  
  37. module DataManager
  38. #--------------------------------------------------------------------------
  39. # alias method: load_database
  40. #--------------------------------------------------------------------------
  41. class <<self; alias load_database_cards load_database; end
  42. def self.load_database
  43. load_database_cards
  44. load_notetag_for_cards
  45. end
  46.  
  47. def load_notetag_for_cards
  48. $data_armors.each do |armor|
  49. next if armor.nil?
  50.  
  51. end
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement