-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix using variables for spawning items #70391
Fix using variables for spawning items #70391
Conversation
This just makes it ignore the variable/math with no error, doesn't it? |
Yes you are right. That should only matter in a small number of cases and you can sort of get around it in those by using a default value. I've looked into a proper solution but it would be huge. The issue is that any solution I try seems to cause an infinite loop. talk_effect_fun_t would need to have its likely_rewards or function calls replaced by dbl_or_var and str_or_var objects. However those contain talk_effect_fun_t so it can't be done like that. At least to me it seems like this is a tiny bug compared to the effort required to rewrite the whole dialog mess. Maybe there is a solution I'm missing, but I think at least for now it makes sense to merge this and then possibly open up the mission rewards display as a new bug. |
talk_effect_fun_t is used in dbl_or_var only for arithmetic which is going away in the next couple of months. |
Thanks! I just assumed I couldn't compile something like that. You learn something new everyday. |
Summary
None
Purpose of change
Fix #68747
Describe the solution
Describe alternatives you've considered
Testing
Additional context