Specific addictions and facility drug risks - #226
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added optional
<drugtypes>and<drugitems>tags for backgrounds. Each tag can contain an unlimited number of specific<drugitem>and<drugtype>tags corresponding to Items and DrugTypes ids. If specified, only these items or items with these drug types, will be considered for all drug-use checks for the character with this background. If no<drugtypes>or<drugitems>are specified, all drug items will be relevant (default Larry's behaviour). It's now possible to add backgrounds for alcoholics, cokeheads, steroid users, etc.Instead of relying on hardcoded sectors for drug use behavior, sectors with facilities and
<DRUNK>risk will be considered "bar" sectors. This change is based on Sevenfm's check in Vengeance: Reloaded.The
<DRUNK>risk tag for facilities can also be given a list of<drugitems>that mercs will consume when the risk is triggered, instead of hardcoded alcohol item. If no items are detailed, alcohol will remain the default. This will allow the configuration of various bar types, opium dens, etcAMBIENT assignment types can also trigger the
<DRUNK>risk.Facility custom drug items will interact with
<drugtypes>and<drugitems>in backgrounds. Items and their types will be checked against the facility<drugtypes>if either are specified.Minor bug fix: inventory loop for drug use wasn't checking if items were consumable, so Larry would try to eat some types of ammo.
Game dir: 1dot13/gamedir#62