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

Make the Mole, Root Sapling, and Corrupted Big Granito a StickyBadguy #3135

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

Conversation

swagtoy
Copy link
Contributor

@swagtoy swagtoy commented Dec 8, 2024

Fixes #3132

I did some basic testing, but I need someone to properly test the stickiness.
Thank you!

@swagtoy swagtoy changed the title Make the Mole, Root Sapling, and Corrupted Big Granito a StickyBadguy [NO SQUASH] Make the Mole, Root Sapling, and Corrupted Big Granito a StickyBadguy Dec 8, 2024
@swagtoy
Copy link
Contributor Author

swagtoy commented Dec 8, 2024

Thx king. I think it's good to merge

Edit: No

@weluvgoatz
Copy link
Member

No?

@swagtoy
Copy link
Contributor Author

swagtoy commented Dec 8, 2024

???

@Rusty-Box
Copy link
Member

Rusty-Box commented Dec 9, 2024

@swagtoy Btw. there were other instance of 'BadGuy' in 'corrupted_big_granito.cpp' in line 52 and 62. Wasn't sure if I also replace that with 'StickyBadguy' or not.

@swagtoy
Copy link
Contributor Author

swagtoy commented Dec 9, 2024

Wait hold on this PR sucks a lot

@swagtoy
Copy link
Contributor Author

swagtoy commented Dec 9, 2024

RE @Rusty-Box There is actually nothing wrong with calling Badguy::* functions, but for consistency I have made it go to the StickyBadguy in any situation where these functions may ever get overloaded

@swagtoy swagtoy changed the title [NO SQUASH] Make the Mole, Root Sapling, and Corrupted Big Granito a StickyBadguy Make the Mole, Root Sapling, and Corrupted Big Granito a StickyBadguy Dec 9, 2024
I wasn't calling the actual sticky related functions like an idiot. I have discussed that this can be refactored one day anyway, so it's whatever...
@swagtoy
Copy link
Contributor Author

swagtoy commented Dec 9, 2024

@Rusty-Box You can now test this again. I apparently didn't even call the sticky functions like an idiot. They are now getting called and I've also applied your suggestion.

@swagtoy
Copy link
Contributor Author

swagtoy commented Dec 13, 2024

Just a note for myself: Need to fix Root Sapling and Corrupted Big Granito; these do not work in this PR.

Comment on lines +49 to +59
const std::string& light_sprite_name = BADGUY_LIGHT_SPRITE_NAME,
const std::string& ice_sprite_name = BADGUY_ICE_SPRITE_NAME);
BadGuy(const Vector& pos, Direction direction, const std::string& sprite_name, int layer = LAYER_OBJECTS,
const std::string& light_sprite_name = "images/objects/lightmap_light/lightmap_light-medium.sprite",
const std::string& ice_sprite_name = "images/creatures/overlays/iceoverlay/iceoverlay.sprite");
const std::string& light_sprite_name = BADGUY_LIGHT_SPRITE_NAME,
const std::string& ice_sprite_name = BADGUY_ICE_SPRITE_NAME);
BadGuy(const ReaderMapping& reader, const std::string& sprite_name, int layer = LAYER_OBJECTS,
const std::string& light_sprite_name = "images/objects/lightmap_light/lightmap_light-medium.sprite",
const std::string& ice_sprite_name = "images/creatures/overlays/iceoverlay/iceoverlay.sprite");
const std::string& light_sprite_name = BADGUY_LIGHT_SPRITE_NAME,
const std::string& ice_sprite_name = BADGUY_ICE_SPRITE_NAME);
BadGuy(const ReaderMapping& reader, const std::string& sprite_name, Direction default_direction, int layer = LAYER_OBJECTS,
const std::string& light_sprite_name = "images/objects/lightmap_light/lightmap_light-medium.sprite",
const std::string& ice_sprite_name = "images/creatures/overlays/iceoverlay/iceoverlay.sprite");
const std::string& light_sprite_name = BADGUY_LIGHT_SPRITE_NAME,
const std::string& ice_sprite_name = BADGUY_ICE_SPRITE_NAME);
Copy link
Member

Choose a reason for hiding this comment

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

One day we need to fix all this sprite parameter stuff because this looks pretty tedious hahaha

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.

Corrupted Big Granito and others cannot be set to "sticky" in Level Editor
4 participants