Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Fix advert pile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon007 committed Nov 14, 2022
1 parent 81fe8c5 commit 7d4f262
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
- Haybales are now visible from much furter distance
- Large item's LODs will be toggled from larger distance in Balanced mode or above

### Bug Fixes

- Fixed the advert pile disappearing, if taken away from Perajarvi

## 3.10 (02.11.2022)

### Added
Expand Down
4 changes: 2 additions & 2 deletions MOP/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.10.1.0")]
[assembly: AssemblyFileVersion("3.10.1.0")]
[assembly: AssemblyVersion("3.10.1.1")]
[assembly: AssemblyFileVersion("3.10.1.1")]
6 changes: 5 additions & 1 deletion MOP/Resources/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@

- Haybales are now toggled as items (instead of world objects)
- Haybales are now visible from much furter distance
- Large item's LODs will be toggled from larger distance in Balanced mode or above
- Large item's LODs will be toggled from larger distance in Balanced mode or above

### Bug Fixes

- Fixed the advert pile disappearing, if taken away from Perajarvi
18 changes: 17 additions & 1 deletion MOP/src/LOD/LodObject.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
using System.Linq;
// Modern Optimization Plugin
// Copyright(C) 2019-2022 Athlon

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.If not, see<http://www.gnu.org/licenses/>.

using System.Linq;
using UnityEngine;

using MOP.Common;
Expand Down
2 changes: 1 addition & 1 deletion MOP/src/MOP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MOP : Mod
public override string Name => "MODERN OPTIMIZATION PLUGIN";
public override string Author => "Athlon"; //Your Username
public override string Version => "3.10.1"; //Version
public const string SubVersion = "BETA_1"; // NIGHTLY-yyyymmdd | BETA_x | RC_
public const string SubVersion = "BETA_2"; // NIGHTLY-yyyymmdd | BETA_x | RC_
#if PRO
public const string Edition = "Mod Loader Pro";
#else
Expand Down
3 changes: 2 additions & 1 deletion MOP/src/Places/Cases/Teimo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Teimo : Place
"PlayerRigid", "GrillboxMicro", "PhysHead", "Shades", "hat", "glasses", "FighterFist", "GameLogic",
"Buttons", "Bet", "Double", "Hold", "InsertCoin", "Deal", "TakeWin", "Pokeri", "CashSound", "videopoker_on",
"Hatch", "HookSlot", "Disabled", "slot_machine_off", "Money", "Lock", "Cash", "Accessories", "VideoPoker", "videopoker",
"Monitor", "screen", "button_", "BreakableWindows", "BreakableWindows"
"Monitor", "screen", "button_", "BreakableWindows", "BreakableWindows", "teimo advert pile(itemx)"
};

/// <summary>
Expand All @@ -70,6 +70,7 @@ public Teimo() : base("STORE")
RunInitialActions(
BoxesFix,
InjectVideoPoker,
AdvertFix,
() => GameObjectBlackList.AddRange(blackList),
() => DisableableChilds = GetDisableableChilds(),
FixSlotAndPoker,
Expand Down

0 comments on commit 7d4f262

Please sign in to comment.