Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,7 @@ namespace Simulator
DefineAddress(CreateCellObject, SelectAddress(0xE74F60, 0xE74A20));
DefineAddress(OverwriteCellCollisionSpheres, SelectAddress(0xE843C0, 0xE83E30));
DefineAddress(MovePlayerToMousePosition, SelectAddress(0xE5BD90, 0xE5B790));
DefineAddress(IncreasePlayerFood, SelectAddress(0x00E7D370, 0x00E7CE10));
DefineAddress(GetScaleDifferenceWithPlayer, SelectAddress(0xE57940, 0xE57340));
DefineAddress(ShouldNotAttack, SelectAddress(0xE57A60, 0xE57460));
DefineAddress(GetDamageAmount, SelectAddress(0xE58F80, 0xE58980));
Expand Down
4 changes: 4 additions & 0 deletions Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ namespace Simulator
auto_STATIC_METHOD_VOID(Cell, MovePlayerToMousePosition,
Args(float a0), Args(a0));

auto_STATIC_METHOD_VOID(Cell, IncreasePlayerFood,
Args(int dnaCount, char dietType),
Args(dnaCount, dietType));

auto_STATIC_METHOD(Cell, ScaleDifference, GetScaleDifferenceWithPlayer,
Args(cCellObjectData* a0), Args(a0));

Expand Down
7 changes: 7 additions & 0 deletions Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ namespace Simulator

void MovePlayerToMousePosition(float deltaTime);

/// Increase the players progress by dnaCount. dnaCount is the progress bar progress. Not the currency.
/// dietType is how the food is counted on the timeline. If its 0, Spore counts it as meat. And if its not 0, its counted as a plant.
/// @param dnaCount
/// @param dietType
void IncreasePlayerFood(int dnaCount, char dietType);

/// Returns scale difference between the given cell and the player cell,
/// telling whether it is smaller, larger or the same scale (level).
/// @param otherCell
Expand Down Expand Up @@ -111,6 +117,7 @@ namespace Simulator
DeclareAddress(CreateCellObject); // 0xE74F60 0xE74A20
DeclareAddress(OverwriteCellCollisionSpheres); // 0xE83E30 0xe843c0
DeclareAddress(MovePlayerToMousePosition); // 0xE5BD90 0xE5B790
DeclareAddress(IncreasePlayerFood); // 0xE7D370 0xE7CE10
DeclareAddress(GetScaleDifferenceWithPlayer); // 0xE57940 0xE57340
DeclareAddress(ShouldNotAttack); // 0xE57A60 0xE57460
DeclareAddress(GetDamageAmount); // 0xE58F80 0xE58980
Expand Down
Loading