-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
base: master
Are you sure you want to change the base?
Conversation
Bad logic anyway, will be improved later.
Edit: No |
No? |
??? |
@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. |
Wait hold on this PR sucks a lot |
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 |
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...
@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. |
Just a note for myself: Need to fix Root Sapling and Corrupted Big Granito; these do not work in this PR. |
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); |
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.
One day we need to fix all this sprite parameter stuff because this looks pretty tedious hahaha
Fixes #3132
I did some basic testing, but I need someone to properly test the stickiness.
Thank you!