mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Migrate a reorganizes bunch of files from PIF
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
class Outfit
|
||||
attr_accessor :id
|
||||
attr_accessor :name
|
||||
attr_accessor :description
|
||||
attr_accessor :tags
|
||||
attr_accessor :price
|
||||
|
||||
def initialize(id, name, description = '',price=0, tags = [])
|
||||
@id = id
|
||||
@name = name
|
||||
@description = description
|
||||
@tags = tags
|
||||
@price = price
|
||||
end
|
||||
|
||||
def trainer_sprite_path()
|
||||
return nil
|
||||
end
|
||||
end
|
||||
11
Data/Scripts/998_InfiniteFusion/Outfits/wrappers/Clothes.rb
Normal file
11
Data/Scripts/998_InfiniteFusion/Outfits/wrappers/Clothes.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Clothes < Outfit
|
||||
attr_accessor :type
|
||||
def initialize(id, name, description = '',price=0, tags = [])
|
||||
super
|
||||
@type = :CLOTHES
|
||||
end
|
||||
|
||||
def trainer_sprite_path()
|
||||
return getTrainerSpriteOutfitFilename(self.id)
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class Hairstyle < Outfit
|
||||
attr_accessor :type
|
||||
def initialize(id, name, description = '',price=0, tags = [])
|
||||
super
|
||||
@type = :HAIR
|
||||
end
|
||||
|
||||
def trainer_sprite_path()
|
||||
return getTrainerSpriteHairFilename(self.id)
|
||||
end
|
||||
|
||||
end
|
||||
11
Data/Scripts/998_InfiniteFusion/Outfits/wrappers/Hat.rb
Normal file
11
Data/Scripts/998_InfiniteFusion/Outfits/wrappers/Hat.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Hat < Outfit
|
||||
attr_accessor :type
|
||||
def initialize(id,name,description='',price=0,tags=[])
|
||||
super
|
||||
@type = :HAT
|
||||
end
|
||||
|
||||
def trainer_sprite_path()
|
||||
return getTrainerSpriteHatFilename(self.id)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user