Skip to content

Commit

Permalink
Update 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon007 committed Mar 1, 2020
1 parent 7781898 commit 6a950db
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ActualMop/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,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("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
5 changes: 4 additions & 1 deletion ActualMop/Resources/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Added:
- Mop position will reset on new game
- "Use" icon will now appear when mop is in hand

Bug Fixes:
- Player can't 'clean yourself' with mop
2 changes: 1 addition & 1 deletion ActualMop/src/ActualMop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ActualMop : Mod
public override string ID => "ActualMop"; //Your mod ID (unique)
public override string Name => "Actual Mop"; //You mod name
public override string Author => "Athlon"; //Your Username
public override string Version => "1.0.1"; //Version
public override string Version => "1.0.2"; //Version

// Set this to true if you will be load custom assets from Assets folder.
// This will create subfolder in Assets folder for your mod.
Expand Down
10 changes: 7 additions & 3 deletions ActualMop/src/MopBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ public void Initialize(MopSaveData mopSaveData)
void Update()
{
// If player holds the object and presses Use button, toggle isEquipped
if (transform.parent == itemPivot && cInput.GetButtonDown("Use"))
if (transform.parent == itemPivot)
{
isEquipped ^= true;
if (!isEquipped)
PlayMakerGlobals.Instance.Variables.GetFsmBool("GUIuse").Value = true;

if (cInput.GetButtonDown("Use"))
isEquipped ^= true;
}

// If is equipped, equip the mop
Expand Down Expand Up @@ -222,7 +226,7 @@ IEnumerator DisableRoutine()
pissRenderer.enabled = true;

// Remove the dirtiness given by the game for finishing pissing
PlayMakerGlobals.Instance.Variables.FindFsmFloat("PlayerDirtiness").Value -= 5;
PlayMakerGlobals.Instance.Variables.FindFsmFloat("PlayerDirtiness").Value -= 2.5f;
// Restore last PissRate value
pissAreas.FsmVariables.FindFsmFloat("PissRate").Value = lastPissRate;
}
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.0.2 (01.03.2020)

### Added

- "Use" icon will now appear when mop is in hand

### Bug Fixes

- Player can't 'clean yourself' with mop

## 1.0.1 (16.02.2020)

### Added
Expand Down

0 comments on commit 6a950db

Please sign in to comment.