chummer5a icon indicating copy to clipboard operation
chummer5a copied to clipboard

Request: Drugs.xml

Open Teksura opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I have noticed a lot of people have to manually create improvements for each drug they wish to use. This gets tedious and awkward to do over and over again.

Describe the solution you'd like I propose the implementation of an drugs.xml file, where a set of pre-built improvements can be designated within the xml. Improvements can be assigned a name and a group, as well as have all other information about them designated as if they were being added by other means.

Then, add a means to add all these improvements by group to the drug item. So buying a dose of Psyche will, if the group does not already exist in the Improvements tab, add the Psyche Improvement group, and under that group will add the associated Improvements (increased mental limit, +1 Logic, +1 Intuition, ect)

Additional context Narco makes this really awkward. The best I can imagine is making some extra node in the drugs.xml file like <narcobonus>1</narcobonus> that applies that at the time of generating the improvement if the character has Narco. So you could either manually update each improvement, or delete it outright and buy another copy of the drug to re-build the entry in the improvements tab.

Teksura avatar Jul 08 '24 18:07 Teksura

Alternative concept:

Instead of adding improvements automatically, we could add a dropdown option under the "add improvement" button to give the option of "add Improvement Group".

And this can draw from a set of premade improvements in the data files somewhere. Possible improvements.xml or possibly somewhere else.

Teksura avatar Mar 08 '25 07:03 Teksura

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '25 00:07 stale[bot]