From 69bbdf4061440ab94c99d2c1d737a4dcb1466057 Mon Sep 17 00:00:00 2001 From: sayterdarkwynd Date: Fri, 25 Oct 2024 12:51:44 -0400 Subject: [PATCH] kills more whitespace --- quests/madness/madnessdata.lua | 4 ++-- scripts/actions/monsters/farmable.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/quests/madness/madnessdata.lua b/quests/madness/madnessdata.lua index 8a5c0b97e6..0396088a34 100644 --- a/quests/madness/madnessdata.lua +++ b/quests/madness/madnessdata.lua @@ -566,7 +566,7 @@ function update(dt) displayBar() --sb.logInfo("Instafreud is active. Reducing madness.") player.radioMessage("fu_useFreud") - player.consumeCurrency("fumadnessresource", self.degradeTotal) + player.consumeCurrency("fumadnessresource", self.degradeTotal) else disableBar() end @@ -577,7 +577,7 @@ function update(dt) if (status.statPositive("mentalProtection")) then player.consumeCurrency("fumadnessresource", self.protectionBonus) end - self.bonusTimer = 30.0 + self.bonusTimer = 30.0 end end ---------------------------------------------------------------------------------- diff --git a/scripts/actions/monsters/farmable.lua b/scripts/actions/monsters/farmable.lua index c390ac221e..95cef2914c 100644 --- a/scripts/actions/monsters/farmable.lua +++ b/scripts/actions/monsters/farmable.lua @@ -248,9 +248,9 @@ function checkMate() self.d20 = math.random(20) + (storage.happiness/10) --roll a d20. Happiness increases value of roll, increasing likelihood of success by up to 50% self.eggType = config.getParameter("eggType") --is egg, and the d20 roll exceeds or equals the difficulty (19) - if (self.eggType) and (self.d20 >= 19) then + if (self.eggType) and (self.d20 >= 19) then --creature is full enough, the wait timer is up, and the creature is currently capable of mating (has eaten at least once) - if (storage.mateTimer <= 0) and (self.canMate) and (storage.food >= 45) then + if (storage.mateTimer <= 0) and (self.canMate) and (storage.food >= 45) then storage.mateTimer = 240 - (storage.food/5) world.spawnItem( self.eggType, mcontroller.position(), 1 ) world.spawnProjectile("fu_egglay",mcontroller.position(), entity.id(), {0, 20}, false, configBombDrop)