mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-07-22 15:47:00 +00:00
Update 6.8
This commit is contained in:
@@ -4,10 +4,12 @@ class Outfit
|
||||
attr_accessor :description
|
||||
attr_accessor :tags
|
||||
attr_accessor :price
|
||||
attr_accessor :store_location
|
||||
|
||||
attr_accessor :is_in_regional_set
|
||||
attr_accessor :is_in_city_exclusive_set
|
||||
|
||||
attr_accessor :contest_condition
|
||||
|
||||
|
||||
|
||||
@@ -25,18 +27,20 @@ class Outfit
|
||||
CITY_OUTFIT_TAGS.any? { |city| tags.include?(city) }
|
||||
end
|
||||
|
||||
def initialize(id, name, description = '',price=0, tags = [])
|
||||
def initialize(id, name, description = '',price=0, tags = [], store_locations = [], contest_conditions = [])
|
||||
@id = id
|
||||
@name = name
|
||||
@description = description
|
||||
@name = _INTL(name)
|
||||
@description = _INTL(description)
|
||||
@tags = tags
|
||||
@price = price
|
||||
|
||||
@is_in_regional_set = check_if_regional_set(tags)
|
||||
@is_in_city_exclusive_set = check_if_city_set(tags)
|
||||
@store_location = store_locations
|
||||
@contest_condition = contest_conditions
|
||||
end
|
||||
|
||||
def trainer_sprite_path()
|
||||
return nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user