15 lines
391 B
Dart
15 lines
391 B
Dart
import '../enums.dart';
|
|
|
|
class ItemConfig {
|
|
/// Default weights for item rarity generation.
|
|
/// Used when selecting random items in Shop or Rewards.
|
|
/// Higher weight = Higher chance.
|
|
static const Map<ItemRarity, int> defaultRarityWeights = {
|
|
ItemRarity.normal: 50,
|
|
ItemRarity.magic: 30,
|
|
ItemRarity.rare: 15,
|
|
ItemRarity.legendary: 4,
|
|
ItemRarity.unique: 1,
|
|
};
|
|
}
|