@@ -10,12 +10,12 @@ bool MyGJShopLayer::init(ShopType p0) {
1010 FMODAudioEngine::sharedEngine ()->playMusic (" RandomSong03.mp3" _spr, true , 0 .1f , 0 );
1111 auto extraMenu = CCMenu::create ();
1212 extraMenu->setPosition ({0 , 0 });
13- this -> addChild (extraMenu);
13+ addChild (extraMenu);
1414 auto particle = static_cast <CCParticleSystemQuad *>(getChildren ()->objectAtIndex (7 ));
1515 particle->setStartColor ({193 , 122 , 5 , 255 });
1616 particle->setEndColor ({255 , 122 , 0 , 0 });
1717
18- auto bg = this -> getChildByType <CCSprite*>(0 );
18+ auto bg = getChildByType<CCSprite*>(0 );
1919 if (bg) {
2020 auto bgFrame = CCSpriteFrameCache::get ()->spriteFrameByName (" GDS_shopBG.png" _spr);
2121 if (bgFrame) {
@@ -25,7 +25,7 @@ bool MyGJShopLayer::init(ShopType p0) {
2525 }
2626 }
2727
28- auto desk = this -> getChildByType <CCSprite*>(3 );
28+ auto desk = getChildByType<CCSprite*>(3 );
2929 if (desk) {
3030 auto deskFrame = CCSpriteFrameCache::get ()->spriteFrameByName (" GDS_shopDesk.png" _spr);
3131 if (deskFrame) {
@@ -35,18 +35,18 @@ bool MyGJShopLayer::init(ShopType p0) {
3535 }
3636 }
3737
38- auto oldShopkeeper = this -> getChildByType <AnimatedShopKeeper*>(0 );
38+ auto oldShopkeeper = getChildByType<AnimatedShopKeeper*>(0 );
3939 if (oldShopkeeper) {
4040 auto newShopkeeper = AnimatedShopKeeper::create (ShopType{1 });
4141 newShopkeeper->setPosition (oldShopkeeper->getPosition ());
4242 newShopkeeper->setScale (oldShopkeeper->getScale ());
4343 newShopkeeper->setRotation (oldShopkeeper->getRotation ());
4444 newShopkeeper->setAnchorPoint (oldShopkeeper->getAnchorPoint ());
45- this -> addChild (newShopkeeper);
45+ addChild (newShopkeeper);
4646 oldShopkeeper->removeFromParent ();
4747 }
4848
49- auto shopSign = this -> getChildByType <CCSprite*>(1 );
49+ auto shopSign = getChildByType<CCSprite*>(1 );
5050 if (shopSign) {
5151 auto shopSignFrame = CCSpriteFrameCache::get ()->spriteFrameByName (" GDS_shopSign.png" _spr);
5252 if (shopSignFrame) {
@@ -57,7 +57,7 @@ bool MyGJShopLayer::init(ShopType p0) {
5757 }
5858
5959 if (!Mod::get ()->getSavedValue <bool >(" shop-yap" )) {
60- this -> runAction (
60+ runAction (
6161 CCSequence::create (
6262 CCDelayTime::create (1 .5f ),
6363 CCCallFunc::create (this , callfunc_selector (MyGJShopLayer::showEntryDialog)),
0 commit comments