Skip to content

Commit

Permalink
add logo and a few enhancements and require the show-button setting f…
Browse files Browse the repository at this point in the history
…or mobile
  • Loading branch information
YellowCat98 committed Sep 17, 2024
1 parent a2a7642 commit 053d2ff
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
14 changes: 10 additions & 4 deletions about.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Totem of Undying

A mod that lets people activate the totem of undying by hitting the C key.
This mod has its own "Totems" stat, this stat holds how many totems you can activate.
This stat increases whenever your star count increases, for example, beating a 10 star level, this grants you 10 totems, and so on.
- A mod that lets people activate the totem of undying from minecraft by hitting the C key. (can be changed in Custom Keybinds settings)

- After activating the Totem of undying, you get a 1.65 second invincibility/noclip effect.

- This mod has its own "Totems" stat, this stat holds how many totems you can activate.

- This stat increases whenever your star count increases, for example, beating a 10 star level, this grants you 10 totems, and so on.

### If it isn't obvious, this mod is made for fun, and is meant to be used for fun. I don't condone cheating in any way.

# CREDITS:
Saritah: Mod idea and making the frame-by-frame totem of undying animation
Saritah: Mod idea and helped by making the frame-by-frame totem of undying animation
Binary file modified logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"settings": {
"show-button": {
"name": "Show Totem button",
"description": "Disables the Totem button next to the Pause button while, doesn't show when you have \"show cursor\" option enables regardless of this setting, this is mainly for mobile.",
"description": "Shows a Totem button next to the pause button while playing to trigger the totem of undying, This cannot be disabled on mobile.",
"type": "bool",
"default": false
}
Expand Down
8 changes: 8 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ using namespace keybinds;

Mod::get()->getName()
});

#ifdef GEODE_IS_MOBILE
listenForSettingChanges("show-button", +[](bool value) {
if (!value) {
Mod::get()->setSettingValue<bool>("show-button", true);
}
});
#endif
}

class $modify(GameStatsManagerHook, GameStatsManager) {
Expand Down

0 comments on commit 053d2ff

Please sign in to comment.