Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module DSIVER144
- module CARD_GAME_SYSTEM
- REGEXPS = []
- REGEXPS[1] = /<card_id:\s*(\d+)>/i
- REGEXPS[2] = /<card_element:\s*(\w+)>/i
- REGEXPS[3] = /<card_power:\s*(\d+)>/i
- REGEXPS[4] = /<card_hp:\s*(\d+)>/i
- REGEXPS[5] = /<card_effect:\s*(\d+)>/i
- end
- end
- end
- class DSI_Card
- attr_accessor :id
- attr_accessor :element
- attr_accessor :effects
- attr_accessor :power
- attr_accessor :hp
- attr_accessor :bitmap_name
- def initialize(id,element,effects,power,hp,bitmap_name)
- @id = id
- @element = element
- @effects = effects
- @power = power
- @hp = hp
- @bitmap_name = bitmap_name
- end
- end
- module DataManager
- #--------------------------------------------------------------------------
- # alias method: load_database
- #--------------------------------------------------------------------------
- class <<self; alias load_database_cards load_database; end
- def self.load_database
- load_database_cards
- load_notetag_for_cards
- end
- def load_notetag_for_cards
- $data_armors.each do |armor|
- next if armor.nil?
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement