@@ -93,7 +93,7 @@ object GenericDropTables {
9393 * @param chance Chance to roll on this table.
9494 * @param rowBonus Enables RoW effects programmatically.
9595 */
96- fun gemDropTable (chance : Rational = ALWAYS , rowBonus : Boolean = false): DropTable {
96+ fun gemDropTable (chance : Double = ALWAYS , rowBonus : Boolean = false): DropTable {
9797 return DropTableHandler .create {
9898 nothing(1 of 2 )
9999 " Uncut sapphire" x 1 chance (1 of 4 )
@@ -136,7 +136,7 @@ object GenericDropTables {
136136 * @param chance Chance to roll on this table.
137137 * @param rowBonus Enables RoW effects programmatically.
138138 */
139- fun rareDropTable (chance : Rational = ALWAYS , rowBonus : Boolean = false): DropTable {
139+ fun rareDropTable (chance : Double = ALWAYS , rowBonus : Boolean = false): DropTable {
140140 return DropTableHandler .create {
141141 " Nature rune" x 40 .. 70 chance (1 of 42 )
142142 " Adamant javelin" x 10 .. 20 chance (1 of 64 )
@@ -181,7 +181,7 @@ object GenericDropTables {
181181 * @param chance Chance to roll on this table.
182182 * @param rowBonus Enables RoW effects programmatically.
183183 */
184- fun megaRareDropTable (chance : Rational = ALWAYS , rowBonus : Boolean = false): DropTable {
184+ fun megaRareDropTable (chance : Double = ALWAYS , rowBonus : Boolean = false): DropTable {
185185 return DropTableHandler .create {
186186 nothing(22 of 25 )
187187 " Rune spear" x 1 .. 5 chance (1 of 16 )
@@ -208,7 +208,7 @@ object GenericDropTables {
208208 * @param combatLevelFactor If true, seed tier is scaled by the mob's combat level.
209209 * @param chance Chance to roll on this table.
210210 */
211- fun generalSeedDropTable (combatLevelFactor : Boolean = true, chance : Rational = ALWAYS ): DropTable {
211+ fun generalSeedDropTable (combatLevelFactor : Boolean = true, chance : Double = ALWAYS ): DropTable {
212212 return DropTableHandler .create {}.table {
213213 object : DropTable (chance) {
214214 override fun computeTable (mob : Mob ? , source : Entity ? ): DropTableItemList {
@@ -247,7 +247,7 @@ object GenericDropTables {
247247 *
248248 * @param chance Chance to roll on this table.
249249 */
250- fun rareSeedDropTable (chance : Rational = ALWAYS ): SimpleDropTable {
250+ fun rareSeedDropTable (chance : Double = ALWAYS ): SimpleDropTable {
251251 return DropTableHandler .createSimple(chance) {
252252 " Toadflax seed" x 1 chance (1 of 5 )
253253 " Irit seed" x 1 chance (1 of 7 )
@@ -269,7 +269,7 @@ object GenericDropTables {
269269 *
270270 * @param chance Chance to roll on this table.
271271 */
272- fun treeHerbSeedDropTable (chance : Rational ): SimpleDropTable {
272+ fun treeHerbSeedDropTable (chance : Double ): SimpleDropTable {
273273 return DropTableHandler .createSimple(chance) {
274274 " Ranarr seed" x 1 chance (1 of 8 )
275275 " Snapdragon seed" x 1 chance (1 of 8 )
@@ -292,7 +292,7 @@ object GenericDropTables {
292292 *
293293 * @param chance Chance to roll on this table.
294294 */
295- fun uncommonSeedDropTable (chance : Rational = ALWAYS ): DropTable {
295+ fun uncommonSeedDropTable (chance : Double = ALWAYS ): DropTable {
296296 return DropTableHandler .createSimple(chance) {
297297 items + = generalSeedDropList3
298298 items + = generalSeedDropList4
@@ -307,7 +307,7 @@ object GenericDropTables {
307307 *
308308 * @param chance Chance to roll on this table.
309309 */
310- fun usefulHerbDropTable (chance : Rational = ALWAYS ): DropTable {
310+ fun usefulHerbDropTable (chance : Double = ALWAYS ): DropTable {
311311 return DropTableHandler .createSimple(chance) {
312312 noted {
313313 " Grimy avantoe" x 1 .. 3 chance (1 of 3 )
@@ -323,7 +323,7 @@ object GenericDropTables {
323323 *
324324 * @param chance Chance to roll on this table.
325325 */
326- fun herbDropTable (chance : Rational = ALWAYS ): DropTable {
326+ fun herbDropTable (chance : Double = ALWAYS ): DropTable {
327327 return DropTableHandler .createSimple(chance) {
328328 " Grimy guam leaf" x 1 chance (1 of 4 )
329329 " Grimy marrentill" x 1 chance (1 of 5 )
0 commit comments