Skip to content
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

Need to see how quality modifiers work in crafting scripts. #55

Open
Admin-Yukiko opened this issue Sep 26, 2021 · 1 comment
Open

Need to see how quality modifiers work in crafting scripts. #55

Admin-Yukiko opened this issue Sep 26, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Admin-Yukiko
Copy link
Contributor

There appears to be something awry with crafting. The quality value of an exceptional item, as reported by the crafting script, is 1. The issue is that the base quality on items is 1. Exceptional items should have a quality value > 1.

@Admin-Yukiko Admin-Yukiko added the bug Something isn't working label Sep 26, 2021
@therealatreides
Copy link

therealatreides commented May 1, 2022

Qualities on new style crafting impact Mods so they are more controllable.

From crafting.inc when creating an exceptional item:
if(theitem.isA(POLCLASS_WEAPON))
theitem.dmg_mod := CInt(temp[1])+(RandomInt(4));
elseif(theitem.isA(POLCLASS_ARMOR))
theitem.ar_mod := CInt(temp[2])+(RandomInt(4));
endif
theitem.maxhp_mod := CInt(temp[3])+(RandomInt(11));
theitem.hp := theitem.maxhp;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants