Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item: Implement CoinCollect2D #289

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

german77
Copy link
Contributor

@german77 german77 commented Jan 19, 2025

One of the biggest classes for coin types. This one utilizes most of the previous implementations.


This change is Reviewable

Copy link
Owner

@MonsterDruide1 MonsterDruide1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocked by ... one of the open PRs, I don't remember which one. If it's not merged today, ask again and I'll look up the exact ID.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @german77)


src/Item/CoinCollect2D.cpp line 45 at r1 (raw file):

    rs::createCoinCollectHolder(this);
    CoinCollectHolder* holder =
        (CoinCollectHolder*)al::getSceneObj(this, SceneObjID_CoinCollectHolder);

(to be introduced in some of the open PRs, not sure which one)

Suggestion:

    CoinCollectHolder* holder =
        al::getSceneObj<CoinCollectHolder>(this, SceneObjID_CoinCollectHolder);

src/Item/CoinCollect2D.cpp line 49 at r1 (raw file):

    GameDataHolderAccessor gameData(this);

    if (!GameDataFunction::isGotCoinCollect(gameData, initInfo)) {

Suggestion:

    if (!GameDataFunction::isGotCoinCollect(this, initInfo)) {

src/Item/CoinCollect2D.cpp line 54 at r1 (raw file):

        makeActorAlive();
        CoinCollectWatcher* watcher =
            (CoinCollectWatcher*)al::getSceneObj(this, SceneObjID_CoinCollectWatcher);

Suggestion:

        CoinCollectWatcher* watcher =
            al::getSceneObj<CoinCollectWatcher>(this, SceneObjID_CoinCollectWatcher);

src/Item/CoinCollect2D.cpp line 73 at r1 (raw file):

        const char* archiveName = rs::getStageCoinCollect2DEmptyArchiveName(this);
        CoinCollectWatcher* watcher =
            (CoinCollectWatcher*)al::getSceneObj(this, SceneObjID_CoinCollectWatcher);

Suggestion:

        CoinCollectWatcher* watcher =
            al::getSceneObj<CoinCollectWatcher>(this, SceneObjID_CoinCollectWatcher);

src/Item/CoinCollect2D.cpp line 152 at r1 (raw file):

        al::startAction(this, "Got");
        CoinCollectWatcher* watcher =
            (CoinCollectWatcher*)al::getSceneObj(this, SceneObjID_CoinCollectWatcher);

Suggestion:

        CoinCollectWatcher* watcher =
            al::getSceneObj<CoinCollectWatcher>(this, SceneObjID_CoinCollectWatcher);

@german77
Copy link
Contributor Author

Needs #250 to compile properly

Copy link
Owner

@MonsterDruide1 MonsterDruide1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's the one I meant!

Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @german77)


data/odyssey_functions.csv line 0 at r4 (raw file):
Also, add this class to the ActorFactory.

Copy link
Contributor Author

@german77 german77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 3 of 5 files reviewed, 1 unresolved discussion (waiting on @MonsterDruide1)


data/odyssey_functions.csv line at r4 (raw file):

Previously, MonsterDruide1 wrote…

Also, add this class to the ActorFactory.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants