Skip to content

Commit

Permalink
Revert 658f200
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxann committed Jan 28, 2025
1 parent c558efa commit 155a2d0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/game/features/self/SpeedUpMoonshine.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include "game/rdr/Natives.hpp"
#include "game/rdr/ScriptFunction.hpp"
#include "game/rdr/ScriptGlobal.hpp"


namespace YimMenu::Features
{
class FastMoonshine : public LoopedCommand
{
using LoopedCommand::LoopedCommand;

virtual void OnTick() override
{
static int LastCheck = 0;
auto MoonshineGlobal = ScriptGlobal(1297600).At(Self::GetPlayer().GetId(), 87).At(19);

if (!MoonshineGlobal.CanAccess() || MISC::GET_SYSTEM_TIME() - LastCheck < 1000)
return;

LastCheck = MISC::GET_SYSTEM_TIME();

auto BottleProgression = MoonshineGlobal.At(16);

if (*BottleProgression.As<int*>() < 20)
{
ScriptFunctions::TriggerMoonshineProduction();
}
}
};

static FastMoonshine _FastMoonshine{"fastmoonshine", "Fast Moonshine", "Speeds up moonshine production"};
}

0 comments on commit 155a2d0

Please sign in to comment.