Tolerance
An add-on for envi-addictions: drug tolerance, binge limits, daily caps and clean-time recovery, plus a staff panel to fix a player's addictions.
Framework: Qbox. Requires: envi-addictions. Optional: hito_drugeffects (tolerance weakens the effect strength).
#How it works
- Tolerance per drug category rises with each dose and falls over real time. High tolerance makes each dose weaker and tells the player once.
- Binge window: repeat doses close together add less addiction.
- Daily cap on how many addiction points one category can gain.
- Clean-time recovery: stay off a category long enough and its addiction slowly falls while you play.
- Categories are grouped into hard drugs, pills and soft (weed, alcohol, cigarettes); gambling and crime are left alone.
envi-addictions keeps working as normal (cravings, blood tests, levels). This resource only uses its public exports.
#Install
ensure GR1M_Tolerance after envi-addictions.
#Commands
/addictionadmin (admins): view and fix a player's addictions and tolerance.
#Config
config.lua: classes, tolerance gain and decay, binge factors, daily caps, reset hour, recovery timings and admin groups.
Support: https://discord.gg/m38m33G6jK
GR1M