mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 23:24:59 +00:00
update 6.7
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
TEMPLATE_EVENT_SECRET_BASE_ENTRANCE_TREE = 4
|
||||
TEMPLATE_EVENT_SECRET_BASE_ENTRANCE_CAVE = 5
|
||||
TEMPLATE_EVENT_SECRET_BASE_ENTRANCE_BUSH = 6
|
||||
|
||||
module SecretBasesData
|
||||
# rareness: The higher, the more common
|
||||
SECRET_BASE_ENTRANCES = {
|
||||
:TYPE_SMALL_1 => { position: [8, 12], rareness: 1 },
|
||||
:TYPE_SMALL_2 => { position: [35, 12], rareness: 1 },
|
||||
:TYPE_SMALL_3 => { position: [55, 12], rareness: 1 },
|
||||
:TYPE_SMALL_4 => { position: [75, 12], rareness: 1 },
|
||||
:TYPE_SMALL_5 => { position: [101, 12], rareness: 1 },
|
||||
:TYPE_SMALL_6 => { position: [124, 12], rareness: 1 },
|
||||
:TYPE_SMALL_7 => { position: [12, 122], rareness: 1 },
|
||||
:TYPE_SMALL_8 => { position: [36, 121], rareness: 1 },
|
||||
:TYPE_SMALL_9 => { position: [65, 121], rareness: 1 },
|
||||
:TYPE_SMALL_10 => { position: [94, 123], rareness: 1 },
|
||||
:TYPE_SMALL_11 => { position: [121, 124], rareness: 1 },
|
||||
|
||||
:TYPE_WIDE_1 => { position: [11, 34], rareness: 0.3 },
|
||||
:TYPE_WIDE_2 => { position: [43, 34], rareness: 0.2 },
|
||||
:TYPE_WIDE_3 => { position: [72, 34], rareness: 0.2 },
|
||||
:TYPE_WIDE_4 => { position: [106, 34], rareness: 0.2 },
|
||||
|
||||
:TYPE_TALL_1 => { position: [7, 71], rareness: 0.3 },
|
||||
:TYPE_TALL_2 => { position: [31, 71], rareness: 0.2 },
|
||||
:TYPE_TALL_3 => { position: [53, 71], rareness: 0.2 },
|
||||
:TYPE_TALL_4 => { position: [85, 71], rareness: 0.2 },
|
||||
:TYPE_TALL_5 => { position: [109, 71], rareness: 0.2 },
|
||||
|
||||
:TYPE_SPECIAL_1 => { position: [11, 98], rareness: 0.05 },
|
||||
:TYPE_SPECIAL_2 => { position: [40, 97], rareness: 0.05 },
|
||||
:TYPE_SPECIAL_3 => { position: [68, 98], rareness: 0.05 },
|
||||
:TYPE_SPECIAL_4 => { position: [92, 99], rareness: 0.05 },
|
||||
}
|
||||
|
||||
end
|
||||
|
||||
225
Data/Scripts/053_PIF_Hoenn/SecretBases/data/SecretBaseItems.rb
Normal file
225
Data/Scripts/053_PIF_Hoenn/SecretBases/data/SecretBaseItems.rb
Normal file
@@ -0,0 +1,225 @@
|
||||
# frozen_string_literal: true
|
||||
module SecretBasesData
|
||||
|
||||
SECRET_BASE_ITEMS = {}
|
||||
|
||||
def SecretBasesData::register_base_item(id, **kwargs)
|
||||
SECRET_BASE_ITEMS[id] = SecretBaseItem.new(id: id, **kwargs)
|
||||
end
|
||||
|
||||
register_base_item(
|
||||
:PC,
|
||||
graphics: "Furniture/pc.png",
|
||||
real_name: "PC",
|
||||
deletable: false,
|
||||
price: 0,
|
||||
behavior: ->(event = nil) {
|
||||
#Behavior for PC is handled in SecretBasesController
|
||||
#useSecretBasePC
|
||||
}
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:MANNEQUIN,
|
||||
graphics: "Furniture/mannequin.png",
|
||||
real_name: _INTL("Mannequin"),
|
||||
price: 500,
|
||||
behavior: ->(event = nil) {
|
||||
useSecretBaseMannequin
|
||||
}
|
||||
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:PLANT,
|
||||
graphics: "Furniture/plant.png",
|
||||
real_name: _INTL("Decorative Plant"),
|
||||
price: 500
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:RED_CHAIR,
|
||||
graphics: "Furniture/red_chair.png",
|
||||
real_name: _INTL("Red Chair"),
|
||||
price: 350,
|
||||
trigger: TRIGGER_PLAYER_TOUCH,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
sit_on_chair(itemInstance)
|
||||
}
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:FANCY_CARPET,
|
||||
graphics: "Carpets/fancy_carpet.png",
|
||||
real_name: _INTL("Fancy Carpet"),
|
||||
price: 5000,
|
||||
pass_through: true,
|
||||
under_player: true
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:FANCY_CARPET_CONNECT,
|
||||
graphics: "Carpets/fancy_carpet_connect.png",
|
||||
real_name: _INTL("Fancy Carpet (Connection)"),
|
||||
price: 100,
|
||||
pass_through: true,
|
||||
under_player: true
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:BOULDER,
|
||||
graphics: "Furniture/boulder.png",
|
||||
real_name: _INTL("Boulder"),
|
||||
price: 600,
|
||||
under_player: false,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
pbStrength
|
||||
if $PokemonMap.strengthUsed
|
||||
pushEvent(itemInstance)
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
#Skitty set
|
||||
|
||||
register_base_item(
|
||||
:SKITTY_CHAIR_3x3,
|
||||
graphics: "skittySet/deco_3x3chair_skitty.png",
|
||||
real_name: _INTL("Skitty Armchair"),
|
||||
price: 1000,
|
||||
height: 1,
|
||||
width: 3,
|
||||
trigger: TRIGGER_PLAYER_TOUCH,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
sit_on_chair(itemInstance)
|
||||
},
|
||||
uninteractable_positions: [[-1,0],[1,0]]
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:SKITTY_CHAIR_3x3,
|
||||
graphics: "skittySet/deco_3x3chair_skitty.png",
|
||||
real_name: _INTL("Skitty Armchair"),
|
||||
price: 1000,
|
||||
height: 1,
|
||||
width: 3,
|
||||
trigger: TRIGGER_PLAYER_TOUCH,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
sit_on_chair(itemInstance)
|
||||
},
|
||||
uninteractable_positions: [[-1,0],[1,0]]
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:SKITTY_COUCH_3x4,
|
||||
graphics: "skittySet/deco_3x4chair_skitty.png",
|
||||
real_name: _INTL("Skitty Couch"),
|
||||
price: 2000,
|
||||
height: 1,
|
||||
width: 4,
|
||||
trigger: TRIGGER_PLAYER_TOUCH,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
sit_on_chair(itemInstance)
|
||||
},
|
||||
uninteractable_positions: [[-2,0],[2,0]]
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:SKITTY_COUCH_3x5,
|
||||
graphics: "skittySet/deco_3x5couch_skitty.png",
|
||||
real_name: _INTL("Wide Skitty Couch"),
|
||||
price: 2000,
|
||||
height: 1,
|
||||
width: 5,
|
||||
trigger: TRIGGER_PLAYER_TOUCH,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
sit_on_chair(itemInstance)
|
||||
},
|
||||
uninteractable_positions: [[-2,0],[2,0]]
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:SKITTY_RUG_3x3,
|
||||
graphics: "skittySet/deco_3x3rug_skitty.png",
|
||||
real_name: _INTL("Large Skitty Rug"),
|
||||
price: 3000,
|
||||
pass_through: true,
|
||||
under_player: true
|
||||
)
|
||||
|
||||
#Rock set
|
||||
register_base_item(
|
||||
:ROCK_CHAIR_1x1,
|
||||
graphics: "rockSet/deco_1x1chair_rock.png",
|
||||
real_name: _INTL("Rocky Stool"),
|
||||
price: 350,
|
||||
trigger: TRIGGER_PLAYER_TOUCH,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
sit_on_chair(itemInstance)
|
||||
}
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:ROCK,
|
||||
graphics: "rockSet/deco_1x1deco_rock.png",
|
||||
real_name: _INTL("Rock"),
|
||||
price: 50
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:ROCK_STATUE,
|
||||
graphics: "rockSet/deco_1x1statue_rock.png",
|
||||
real_name: _INTL("Rocky Statue"),
|
||||
price: 50
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:ROCK_WALL,
|
||||
graphics: "rockSet/deco_1x2wall_rock.png",
|
||||
real_name: _INTL("Rocky Wall"),
|
||||
price: 50
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:ROCK_TABLE_2x3,
|
||||
graphics: "rockSet/deco_2x3table_rock.png",
|
||||
real_name: _INTL("Large Rocky Table"),
|
||||
width:3,
|
||||
height:2,
|
||||
price: 5000
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:ROCK_CHAIR_3x3,
|
||||
graphics: "rockSet/deco_3x3chair_rock.png",
|
||||
real_name: _INTL("Rocky Armchair"),
|
||||
price: 1000,
|
||||
height: 1,
|
||||
width: 3,
|
||||
trigger: TRIGGER_PLAYER_TOUCH,
|
||||
behavior: ->(itemInstance = nil) {
|
||||
sit_on_chair(itemInstance)
|
||||
},
|
||||
uninteractable_positions: [[-1,0],[1,0]]
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:ROCK_RUG_1x1,
|
||||
graphics: "rockSet/deco_1x1rug_rock.png",
|
||||
real_name: _INTL("Small Rocky Rug"),
|
||||
price: 500,
|
||||
pass_through: true,
|
||||
under_player: true
|
||||
)
|
||||
|
||||
register_base_item(
|
||||
:ROCK_RUG_3x3,
|
||||
graphics: "rockSet/deco_3x3rug_rock.png",
|
||||
real_name: _INTL("Large Rocky Rug"),
|
||||
price: 2000,
|
||||
pass_through: true,
|
||||
under_player: true
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user