Skip to content

Expand Lua Implementation#7861

Closed
kphoenix137 wants to merge 14 commits intodiasurgical:masterfrom
kphoenix137:expand-lua
Closed

Expand Lua Implementation#7861
kphoenix137 wants to merge 14 commits intodiasurgical:masterfrom
kphoenix137:expand-lua

Conversation

@kphoenix137
Copy link
Copy Markdown
Collaborator

@kphoenix137 kphoenix137 commented Mar 18, 2025

  • Makes events available globally
  • Adds dynamic mod loading from the mods folder
  • Adds hooks in Item Generation that allow configuring how items are skipped when generating items both leveraging the existing vendor item skipping and adding dungeon item skipping

@AJenbo
Copy link
Copy Markdown
Member

AJenbo commented Mar 19, 2025

Adds dynamic mod loading from the mods folder
<3

Comment thread Source/lua/events/items.cpp
Comment thread Source/options.cpp Outdated
Comment thread Source/lua/events/items.cpp Outdated
Comment thread Source/utils/file_util.h Outdated
Comment thread Source/lua/usertypes/items.cpp Outdated
"dwBuff", &Item::dwBuff);
}

sol::object CreateItemObject(const Item &item)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is not needed. Now that item is registered as a usertype, you can pass items directly into Lua functions.

Comment thread Source/lua/usertypes/items.cpp Outdated
Comment thread Source/lua/usertypes/items.cpp Outdated
@kphoenix137 kphoenix137 changed the title Expand Lua Implementation (Dynamic Mod Loading, Item Hooks) Expand Lua Implementation Mar 20, 2025
@kphoenix137 kphoenix137 closed this Apr 1, 2025
@kphoenix137
Copy link
Copy Markdown
Collaborator Author

PR had it's elements extracted into new PRs. This is no longer needed.

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.

3 participants