Current section
Files
Jump to
Current section
Files
src/return_item_data.gleam
import gleam/option.{type Option, None, Some}
// import gleam/map.{Map}
pub type ReturnItemData {
ReturnItemData(
is_show_cast_progress_bar: Bool,
item_description_cuid: Int,
is_casting_canceled_by_use_skill: Bool,
cast_duration_msec: Int,
cooldown_duration_msec: Int,
min_price_registrable_at_general_shop: Int,
min_price_registrable_at_covenant_shop: Int,
max_price_registrable_at_general_shop: Int,
use_in_combat: Bool,
sell_currency_cuid: Int,
is_tradeable: Bool,
is_lockable: Bool,
cast_action_cuid: Int,
return_destination_kind: String,
storable_user_inventory_kind: String,
is_destroyable: Bool,
waiting_for_playing_level_sequence_msec: Int,
unique_name: String,
is_consumed_on_use: Bool,
is_casting_canceled_by_active_move: Bool,
item_name_cuid: Int,
cuid: Int,
sort_order: Int,
is_show_acquisition_source: Bool,
is_registrable_at_general_shop: Bool,
item_icon_cuid: Int,
is_registrable_at_covenant_shop: Bool,
weight: Int,
cooldown_group_id: Int,
required_level: Int,
item_grade: String,
is_casting_canceled_by_switch_stance: Bool,
sell_price: Int,
use_sound_cuid: Int,
touch_sound_cuid: Int,
is_quick_slot_assignable: Bool,
storable_inventory_owner_kind_list: List(String),
acquisition_source_cuid_list: List(String),
max_hold_count: Int,
is_casting_canceled_by_call_mount: Bool,
)
}
pub fn by_cuid(cuid) -> Option(ReturnItemData) {
case cuid {
1_005_129_673 ->
Some(ReturnItemData(
False,
2_835_943_638,
False,
2500,
10_000,
0,
0,
98_000_000,
True,
0,
True,
True,
1_518_481_337,
"RegisteredReturnPlace",
"Common",
True,
2500,
"ReturnStone",
True,
False,
2_117_866_584,
1_005_129_673,
0,
True,
True,
70_174_755,
True,
0,
9,
0,
"Common",
False,
0,
0,
0,
False,
["RealmAccountOrPlayer"],
[],
1,
False,
))
1_842_566_292 ->
Some(ReturnItemData(
True,
110_388_753,
True,
1000,
1,
0,
0,
98_000_000,
False,
2_697_088_054,
False,
True,
1_518_481_338,
"ClosestResurrector",
"Common",
False,
1000,
"AssistModeResupplyTicket",
False,
True,
3_385_245_171,
1_842_566_292,
0,
True,
True,
3_129_768_002,
True,
0,
94,
0,
"Common",
True,
20_000,
0,
0,
True,
["RealmAccountOrPlayer"],
[],
99_999_999,
True,
))
4_290_813_911 ->
Some(ReturnItemData(
False,
1_119_986_817,
False,
2500,
30_000,
0,
0,
98_000_000,
True,
0,
True,
True,
1_518_481_337,
"ReturnHaven",
"Common",
True,
2500,
"CovenantReturnStone",
True,
False,
3_444_470_691,
4_290_813_911,
0,
True,
True,
3_764_801_536,
True,
0,
93,
30,
"Common",
False,
0,
0,
0,
False,
["RealmAccountOrPlayer"],
[],
1,
False,
))
1_898_182_943 ->
Some(ReturnItemData(
True,
2_906_067_548,
True,
1000,
10_000,
0,
0,
98_000_000,
False,
2_697_088_054,
False,
False,
1_518_481_338,
"ClosestResurrector",
"Common",
False,
1000,
"ShardofWorld",
False,
True,
2_396_944_318,
1_898_182_943,
0,
True,
True,
1_427_488_217,
True,
5,
92,
0,
"Uncommon",
True,
1350,
0,
0,
False,
["RealmAccountOrPlayer"],
[],
9999,
True,
))
4_273_333_305 ->
Some(ReturnItemData(
True,
1_809_179_974,
True,
1000,
1_800_000,
0,
0,
98_000_000,
False,
2_697_088_054,
False,
False,
1_518_481_338,
"ClosestResurrector",
"Common",
False,
1000,
"ShardofVoid",
False,
True,
1_091_102_920,
4_273_333_305,
0,
True,
True,
576_336_371,
True,
5,
91,
0,
"Common",
True,
750,
0,
0,
False,
["RealmAccountOrPlayer"],
[],
9999,
True,
))
_ -> None
}
}