RarityData

@Serializable
data class RarityData(val id: RarityId, val displayName: Map<@Serializable(with = LocaleSerializer::class) Locale, String>, val weight: Double, val worth: String)

レアリティの定義。rarity/ 配下の JSON ファイル (サブディレクトリを含む) から読み込まれる。

Constructors

Link copied to clipboard
constructor(id: RarityId, displayName: Map<@Serializable(with = LocaleSerializer::class) Locale, String>, weight: Double, worth: String)

Properties

Link copied to clipboard
val displayName: Map<@Serializable(with = LocaleSerializer::class) Locale, String>

ロケール別の表示名 (MiniMessage)

Link copied to clipboard

レアリティの ID

Link copied to clipboard

レアリティの抽選の重み。0 以上

Link copied to clipboard

価値式 (変数 length_rate)。魚が価値式を持たない場合に使う