Skip to content

Add potion image fallback and related code to character template ! :3 - #22

Open
CorynBunnydeer wants to merge 1 commit into
Alchyr:masterfrom
CorynBunnydeer:add-potion-image-fallback
Open

Add potion image fallback and related code to character template ! :3#22
CorynBunnydeer wants to merge 1 commit into
Alchyr:masterfrom
CorynBunnydeer:add-potion-image-fallback

Conversation

@CorynBunnydeer

Copy link
Copy Markdown

Hello Alchyr from osu!Taiko ! ✿òωó)ง
((You have no idea the surprise I got when I was looking into StS2 modding and saw you created BaseLib, hahah!))

So !

Adding Potion image fallback thingie to the template ! Tried keeping the structure of the rest of the StringExtension helpers.

Basically, CharModPotion now looks for: images/potions/<potion-id>.png and uses this as fallback: images/potions/potion.png

I did it first in my own Character Mod as a means of testing, which used the template as a base. Intentionally did the change just on Character template, given the Content one doesn't have a Potion Pool, as far as I understood (which makes sense), so yeah !

I took a look at precedents, and found #13 , which was implemented separately upstream, so I believed this could be useful.

((Now, do I get kudosu ? ehe :3
Ty for your work on BaseLib ! It's been making this whole effort a lot easier))

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.

1 participant