-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Allow the creation of new Tiberiums #1234
base: develop
Are you sure you want to change the base?
Allow the creation of new Tiberiums #1234
Conversation
b572954
to
8083d45
Compare
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
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.
Was gonna comment on the usage of new and delete instead of game's allocators but probably that's fine, not sure
src/Ext/House/Hooks.cpp
Outdated
{ | ||
return 0; | ||
} |
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.
{ | |
return 0; | |
} | |
return 0; |
src/Ext/House/Hooks.cpp
Outdated
{ | ||
amount = static_cast<float>(lastTotalStorage - lastStorage); | ||
} |
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.
{ | |
amount = static_cast<float>(lastTotalStorage - lastStorage); | |
} | |
amount = static_cast<float>(lastTotalStorage - lastStorage); |
src/Ext/House/Hooks.cpp
Outdated
{ | ||
break; | ||
} |
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.
{ | |
break; | |
} | |
break; |
src/Ext/House/Hooks.cpp
Outdated
{ | ||
freeSpace = amount; | ||
} |
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.
{ | |
freeSpace = amount; | |
} | |
freeSpace = amount; |
src/Ext/Tiberium/Body.cpp
Outdated
if (auto pOverlay = TiberiumExt::ExtMap.Find(pItem)->Overlays[0]) | ||
{ | ||
pItem->Image = pOverlay; | ||
} |
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.
if (auto pOverlay = TiberiumExt::ExtMap.Find(pItem)->Overlays[0]) | |
{ | |
pItem->Image = pOverlay; | |
} | |
if (auto pOverlay = TiberiumExt::ExtMap.Find(pItem)->Overlays[0]) | |
pItem->Image = pOverlay; |
{ | ||
total += Tiberiums[i]; | ||
} |
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.
{ | |
total += Tiberiums[i]; | |
} | |
total += Tiberiums[i]; |
{ | ||
storageClass->Tiberiums[i] = Tiberiums[i] + that.Tiberiums[i]; | ||
} |
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.
{ | |
storageClass->Tiberiums[i] = Tiberiums[i] + that.Tiberiums[i]; | |
} | |
storageClass->Tiberiums[i] = Tiberiums[i] + that.Tiberiums[i]; |
{ | ||
Tiberiums[i] += that.Tiberiums[i]; | ||
} |
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.
{ | |
Tiberiums[i] += that.Tiberiums[i]; | |
} | |
Tiberiums[i] += that.Tiberiums[i]; |
{ | ||
storageClass->Tiberiums[i] = Tiberiums[i] - that.Tiberiums[i]; | ||
} |
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.
{ | |
storageClass->Tiberiums[i] = Tiberiums[i] - that.Tiberiums[i]; | |
} | |
storageClass->Tiberiums[i] = Tiberiums[i] - that.Tiberiums[i]; |
{ | ||
Tiberiums[i] -= that.Tiberiums[i]; | ||
} |
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.
{ | |
Tiberiums[i] -= that.Tiberiums[i]; | |
} | |
Tiberiums[i] -= that.Tiberiums[i]; |
17fb1c1
to
098024b
Compare
Co-authored-by: Otamaa <9769329+Otamaa@users.noreply.github.com>
098024b
to
5dcb105
Compare
5dcb105
to
1f3bb8d
Compare
63c3a8f
to
b97155d
Compare
Allows the creation of new Tiberiums.
Docs coming later.
TODO: