mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
6.4 update (minus sprites)
This commit is contained in:
@@ -12,4 +12,8 @@ class Outfit
|
||||
@tags = tags
|
||||
@price = price
|
||||
end
|
||||
|
||||
def trainer_sprite_path()
|
||||
return nil
|
||||
end
|
||||
end
|
||||
@@ -1,5 +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
|
||||
@@ -1,5 +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
|
||||
@@ -1,5 +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