Browse Source

various config files

pull/60/head
andy 3 years ago
parent
commit
7c7cf95942
  1. 15
      data/battle_param/ep1_rare_monster.toml
  2. 13
      data/battle_param/ep2_rare_monster.toml
  3. 27
      data/battle_param/ep4_rare_monster.toml
  4. 11
      data/battle_param/global_rare_monster.toml
  5. 2
      src/ship/map/maps.rs

15
data/battle_param/ep1_rare_monster.toml

@ -0,0 +1,15 @@
# 1/100 = 0.01
# 1/256 = 0.00390625
# 1/512 = 0.001953125
[[Hildebear]]
rate = 0.01
[[RagRappy]]
rate = 0.01
[[PoisonLily]]
rate = 0.01
[[PofuillySlime]]
rate = 0.01

13
data/battle_param/ep2_rare_monster.toml

@ -0,0 +1,13 @@
# 1/100 = 0.01
# 1/256 = 0.00390625
# 1/512 = 0.001953125
[[Hildebear]]
rate = 0.01
[[RagRappy]]
rate = 0.01
[[PoisonLily]]
rate = 0.01

27
data/battle_param/ep4_rare_monster.toml

@ -0,0 +1,27 @@
# 1/100 = 0.01
# 1/256 = 0.00390625
# 1/512 = 0.001953125
[[SandRappyCrater]]
rate = 0.01
[[ZuCrater]]
rate = 0.01
[[Dorphon]]
rate = 0.01
[[SandRappyDesert]]
rate = 0.01
[[ZuDesert]]
rate = 0.01
[[MerissaA]]
rate = 0.01
[[Shambertin]]
rate = 0.1
[[SaintMillion]]
rate = 0.1

11
data/battle_param/global_rare_monster.toml

@ -0,0 +1,11 @@
# 1/100 = 0.01
# 1/256 = 0.00390625
# 1/512 = 0.001953125
# Everything that isn't Kondrieu
[[Grunt]]
rate = 0.01
# Kondrieu
[[Boss]]
rate = 0.1

2
src/ship/map/maps.rs

@ -73,7 +73,7 @@ fn parse_enemy(episode: &Episode, map_area: &MapArea, raw_enemy: RawMapEnemy) ->
},
MonsterType::PouillySlime => {
// guaranteed rare slime already pushed
// roll for the other 3 copies
// roll for the other 3 (4?) copies
for _ in 0..4 {
if rand::thread_rng().gen_range(0, 100) < 11 {
monsters.push(Some(MapEnemy::new(MonsterType::PouillySlime, monster.map_area).set_shiny()))

Loading…
Cancel
Save