-
Notifications
You must be signed in to change notification settings - Fork 29
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
base: master
Are you sure you want to change the base?
Conversation
db48f5d
to
2904b4e
Compare
There was a problem hiding this 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);
2904b4e
to
9bba1da
Compare
Needs #250 to compile properly |
9bba1da
to
a0206b3
Compare
There was a problem hiding this 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.
a0206b3
to
ead3eb7
Compare
There was a problem hiding this 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.
ead3eb7
to
1079771
Compare
One of the biggest classes for coin types. This one utilizes most of the previous implementations.
This change is