-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10a4213
commit 6be51a6
Showing
6 changed files
with
90 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/CCSpriteFrameCache.hpp> | ||
#include <Geode/modify/EnhancedGameObject.hpp> | ||
#include <Geode/modify/GJBaseGameLayer.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (CCSpriteFrameCache) | ||
{ | ||
CCSpriteFrame* spriteFrameByName(const char *pszName) | ||
{ | ||
if (std::string(pszName).starts_with("secretCoin_2")) | ||
pszName = utils::string::replace(std::string(pszName), "_2", "").c_str(); | ||
|
||
return CCSpriteFrameCache::spriteFrameByName(pszName); | ||
} | ||
|
||
QOLMOD_MOD_ALL_HOOKS("gold-user-coins") | ||
}; | ||
|
||
bool is; | ||
int objID; | ||
|
||
class $modify (GJBaseGameLayer) | ||
{ | ||
bool hasUniqueCoin(EffectGameObject* p0) | ||
{ | ||
auto v = GJBaseGameLayer::hasUniqueCoin(p0); | ||
|
||
if (is) | ||
p0->m_objectID = 142; | ||
|
||
return v; | ||
} | ||
|
||
QOLMOD_MOD_ALL_HOOKS("gold-user-coins") | ||
}; | ||
|
||
class $modify (EnhancedGameObject) | ||
{ | ||
void updateUserCoin() | ||
{ | ||
objID = m_objectID; | ||
is = true; | ||
|
||
EnhancedGameObject::updateUserCoin(); | ||
|
||
this->setColor(ccc3(255, 255, 255)); | ||
|
||
is = false; | ||
m_objectID = objID; | ||
} | ||
|
||
QOLMOD_MOD_ALL_HOOKS("gold-user-coins") | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/PlayerObject.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (PlayerObject) | ||
{ | ||
virtual void update(float dt) | ||
{ | ||
PlayerObject::update(dt); | ||
|
||
if (m_shipStreak) | ||
m_shipStreak->setVisible(false); | ||
} | ||
|
||
QOLMOD_MOD_ALL_HOOKS("no-ship-fire") | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters