REALLY fixed custom bees product chances, i hope

This commit is contained in:
bdew committed 2015-05-11 11:29:05 +03:00
1 parent efc638a428
commit a8fecd9203
1 file changed
+2 -2
@@ -83,8 +83,8 @@ class BeeSpecies(cfg: ConfigSection, ident: String) extends IAlleleBeeSpecies {
val specialty = prepareLootList("Specialty")
specialty.foreach(x => Gendustry.logDebug(" [%.1f%%] %s", x._2, x._1))
override val getProducts = products.map(x => x._1 -> Int.box(x._2.round * 100)).asJava
override val getSpecialty = specialty.map(x => x._1 -> Int.box(x._2.round * 100)).asJava
override val getProducts = products.map(x => x._1 -> Int.box((x._2 * 100).round)).asJava
override val getSpecialty = specialty.map(x => x._1 -> Int.box((x._2 * 100).round)).asJava
override val isNocturnal = cfg.getBoolean("Nocturnal")
override val getRoot = AlleleManager.alleleRegistry.getSpeciesRoot("rootBees").asInstanceOf[IBeeRoot]