Skip to content

Add Card:can_sell() API method#1254

Open
NeatsTopFoo wants to merge 5 commits intoSteamodded:mainfrom
NeatsTopFoo:main
Open

Add Card:can_sell() API method#1254
NeatsTopFoo wants to merge 5 commits intoSteamodded:mainfrom
NeatsTopFoo:main

Conversation

@NeatsTopFoo
Copy link

Identical to other API method patches - But from what I can see, looks like it needs to be in better_calc.toml? As the area where the API method needs to be directly follows an eternal check and the next thing after that is a return.

May need to be moved to center.toml

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

Identical to other API method patches - But from what I can see, looks like it needs to be in better_calc.toml? As the area where the API method needs to be directly follows an eternal check and the next thing after that is a return.

May need to be moved to center.toml
NeatsTopFoo and others added 2 commits March 11, 2026 03:10
Ret check changed to a more strict nil check as it was ignoring falsy values
@nh6574
Copy link
Member

nh6574 commented Mar 11, 2026

Looks good to me! The only comment is that context in that function is never really used in a vanilla, but I'm sure it doesn't hurt to pass it.
I added lsp definitions for now, I'll leave it open to see if anyone has any comments before merging.

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.

2 participants