Skip to content

Commit

Permalink
Added cursed gauntlet
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jun 3, 2024
1 parent 1720e34 commit 728149c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"resources/demon_gauntlet.png",
"resources/castle_gauntlet.png",
"resources/galaxy_gauntlet.png",
"resources/universe_gauntlet.png"
"resources/universe_gauntlet.png",
"resources/cursed_gauntlet.png"
]
},
"settings": {
Expand Down
Binary file added resources/cursed_gauntlet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/Styles/GauntletStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ class $modify(GauntletSelectLayer) {
sprite->setScale(1.270f);
sprite->setZOrder(0);
node->addChild(sprite);
} else if (gauntletName == "Cursed") {
CCSprite* sprite = CCSprite::create(Mod::get()->expandSpriteName("cursed_gauntlet.png"));
sprite->setPosition(bg->getPosition());
sprite->setScale(1.270f);
sprite->setZOrder(0);
node->addChild(sprite);
} else {
bg->setVisible(true);
label->setVisible(true);
Expand Down

0 comments on commit 728149c

Please sign in to comment.