Skip to content

Conversation

@Aurelius7309
Copy link
Member

Card.draw is way too annoying to deal with, so why not build an API around making it modular and allowing easy insertions anywhere during the drawing process just by specifying a numerical priority value? Well here it is I guess

Copy link
Member

@GauntletGames-2086 GauntletGames-2086 left a comment

Choose a reason for hiding this comment

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

Besides one issue, this PR looks good to merge.

@Aurelius7309 Aurelius7309 merged commit e32ce93 into main Feb 28, 2025
2 checks passed
Aurelius7309 pushed a commit that referenced this pull request Mar 1, 2025
* Initial commit

* Move SMODS global into `core.lua` instead of `meta.lua`

* 11 more classes + HEX annotated.

* Wrong file name lmao

* SMODS.Sound Definition File

* Full rewrite, no more "missing fields" complains

* Remove `self` autocomplete, blame `@type` strictness.

* whoopsie

* 0.9.8 compat sushed

* whoopsie + 0.9.8 compat sushed

0.9.8 compat sushed

* Revert "whoopsie + 0.9.8 compat sushed"

This reverts commit 936001e.

* Revert `self` autocomplete removal, actually fix issue now

* Re-add 0.9.8 shushing

* Final bug squash before I get back to annotating classes

* Additional function fixes

* That should not be there

* Exclude VSCode and Lua LSP settings in commits

* whoopsie x2

* EVEN MORE bugfixes

* Update tag.lua

* Another bugfix :sadge:

* Thought this was merged lmao

* Actual fix xdd

* Man I love doing bugfixes!!!!

* How'd I miss this 💀

* Small calculate correction + SMODS.Sticker + SMODS.Stake (I think?)

* SMODS.Blind

* Update SMODS.Center/SMODS.Seal lsp_def files

* SMODS.PokerHand + type corrections

* "small" text edits (table|Class -> Class|table, better `inject_clas` desc)

* Array typing corrections (totally not fixing a 2AM commit))

* Mod class

Missing some internal params but those can just be ignored as long as type declaration uses `Mod|table`

* SMODS.Booster.select_card

* SMODS.Edition + another overhaul cause LSP discovery

* whoopsie

* I LOVE UNDOCUMENTED FUNCTIONS!!! + CalcContext

* Small text + typing corrections

* Apparently I nuked `SMODS.Back`?!?! + literal table abuse + other stuff

* small arg correction

* Not supposed to be there

* Correction

* SMODS.DeckSkin

* Quantum Enhancement + BetterCalc utils

* SMODS.Enhancement, SMODS.Challenge, SMODS.Suit, SMODS.Rank

* Add doc links + spellcheck

* Link correction

* Some of loader/util + update to current

* Update to current SMODS

* Basically all of `utils.lua` + `game_object.lua`

* Small clarifications

* 95% of `ui.lua`

* Bugfix + vanilla class overloading

* Update game_object.lua

* (Pretty sure) All modified vanilla functions

* Quick bugfix

* `SMODS.poll_rarity` correction

* Forgor a function xdd

* Bugfix + add (current) #469 functions

* feat: lsp for SMODS.https

* Update `cards`

* `cards` fixed now, correct definition

* Bugfix

* Type... an unused (AND UNDOCUMENTED!) `SMODS.Edition` function?

* `starting_shop` context

* spellcheck :balatrojoker:

* `SMODS.optional_features` + corrections

* `SMODS.Sticker.sticker_sprite` annotated (forgor)

* Initial `SMODS.DrawStep` API annotations ( from #480 )

* Type corrections

* feat: lsp https.asyncRequest

* Type + desc corrections

* Missing return type

* Update `post_trigger` desc

* revert prev commit (pls document this)

* `logging.lua` annotated

* Annotate `lovely`

* Annotate `json.lua`

* Update + Annotate #490

* update `context.cardarea`

* Update `SMODS.DrawStep` PR annotations

* Desc updates + bugfixes

---------

Co-authored-by: WilsontheWolf <33164598+WilsontheWolf@users.noreply.github.com>
Co-authored-by: WilsontheWolf <git@shorty.systems>
@Aurelius7309 Aurelius7309 deleted the draw branch March 21, 2025 12:40
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.

4 participants