1,118 bytes added
, 18:38, 23 November 2021
{{talkheader}}
==Effect on Monster Spawning==
I was looking at the code, and saw this:
In <code>Locations\MineShaft::adjustLevelChances</code> (systematically called by <samp>MineShaft::populateLevel</samp>)
<syntaxhighlight lang="C#">
bool num = AnyOnlineFarmerHasBuff(23);
flag = AnyOnlineFarmerHasBuff(24);
if (num && getMineArea() != 121)
{
if (!flag)
{
monsterChance = 0.0;
}
}
</syntaxhighlight>
''23 is Oil of Garlic, 24 is Monster Musk (can be double checked in <samp>Buffs.cs</samp>)''
I don't see any modification to <samp>monsterChance</samp> after <samp>adjustLevelChances()</samp> has been called. I guess it would mean using Oil of Garlic (without Monster Musk) remove all monsters in the Mines (not in Skull Cavern, for which <samp>getMineArea() == 121</samp>).
I checked in-game quickly. I encountered no monster in the Mines, except on "quarry levels" (this is specified in the code right after my excerpt in the same function), and level 91; looking in the game code I don't find why, probably just a bug?
-- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 18:38, 23 November 2021 (UTC)