Skip to content

Global weapon trade blacklist - #735

Open
oleh5230 wants to merge 2 commits into
Grokitach:dev2from
oleh5230:trade-2
Open

Global weapon trade blacklist#735
oleh5230 wants to merge 2 commits into
Grokitach:dev2from
oleh5230:trade-2

Conversation

@oleh5230

Copy link
Copy Markdown
Contributor

Temporarily sets weapon condition below threshold during trading.
Changing minimal trade condition doesn't seem to affect anything since Parts Handler donates 0% parts.

Also added extra condition reset callback just in case.

@oleh5230 oleh5230 changed the title Trade 2 Global weapon trade blacklist May 16, 2026
@Grokitach

Copy link
Copy Markdown
Owner

To do it globally by script I don't think it's necessary to play with the condition. Just check if it's a gun and not IsMelee and if so, invalidate the trade possibility in a specific mod that can be disabled

@oleh5230

oleh5230 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@Grokitach to my knowledge trade profiles are handled in engine, and the only trade related script intercept is on_get_item_cost

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