<commit_before>scriptname _Seed_AlcoholSystem extends Quest

import Utility

GlobalVariable property _Seed_AlcoholSystemEnabled auto
GlobalVariable property _Seed_AttributeDrunk auto
GlobalVariable property _Seed_Setting_DrunkNotifications auto
GlobalVariable property _Seed_Setting_DrunkVFX auto
GlobalVariable property GameHour auto

Spell property _Seed_DrunkSpell1 auto          ; Relaxed
Spell property _Seed_DrunkSpell2 auto          ; Tipsy
Spell property _Seed_DrunkSpell3 auto          ; Drunk
Spell property _Seed_DrunkSpell4 auto          ; Very Drunk (flag Disease)
Spell property _Seed_DrunkSpellHungOver auto   ; Hung Over (after having passed out) (flag Disease)

Location property KynesgroveBraidwoodInnLocation auto
Location property WindhelmCandlehearthHallLocation auto
Location property WindhelmNewGnisisCornerclubLocation auto
Location property FalkreathDeadMansDrinkLocation auto
Location property DragonBridgeFourShieldsTavernLocation auto
Location property SolitudeWinkingSkeeverLocation auto
Location property MorthalMoorsideInnLocation auto
Location property NightgateInnLocation auto
Location property DawnstarWindpeakInnLocation auto
Location property MarkarthSilverBloodInnLocation auto
Location property OldHroldanInnLocation auto
Location property RiftenBeeandBarbLocation auto
Location property IvarsteadVilemyrInnLocation auto
Location property RoriksteadFrostfruitInnLocation auto
Location property RiverwoodSleepingGiantInnLocation auto
Location property WhiterunBanneredMareLocation auto
Location property WhiterunDrunkenHuntsmanLocation auto
Location property WinterholdTheFrozenHearthLocation auto

Actor property PlayerRef auto
Keyword property ActorTypeUndead auto
Keyword property ImmuneParalysis auto

float property MAX_DRUNK = 120.0 autoReadOnly
float property MIN_DRUNK = 0.0 autoReadOnly

int DRINKTYPE_ALE = 1
int DRINKTYPE_WINE = 2
int DRINKTYPE_LIQUOR = 3

float ALE_AMOUNT = 12.0
float WINE_AMOUNT = 32.0
float LIQUOR_AMOUNT = 52.0
float AMOUNT_VARIANCE = 10.0

float SOBER_RATE = 20.0

float property update_interval = 0.5 auto hidden
float property last_update_time auto hidden
float last_drunk = 0.0
float last_hangover_time

function AlcoholConsumed(int drinktype)<commit_msg>Latest alcohol system changes.<commit_after>scriptname _Seed_AlcoholSystem extends Quest

import Utility

GlobalVariable property _Seed_AlcoholSystemEnabled auto
GlobalVariable property _Seed_AttributeDrunk auto
GlobalVariable property _Seed_Setting_DrunkNotifications auto
GlobalVariable property _Seed_Setting_DrunkVFX auto
GlobalVariable property GameHour auto

Spell property _Seed_DrunkSpell1 auto          ; Relaxed
Spell property _Seed_DrunkSpell2 auto          ; Tipsy
Spell property _Seed_DrunkSpell3 auto          ; Drunk
Spell property _Seed_DrunkSpell4 auto          ; Very Drunk (flag Disease)
Spell property _Seed_DrunkSpellHungOver auto   ; Hung Over (after having passed out) (flag Disease)

Location property KynesgroveBraidwoodInnLocation auto
Location property WindhelmCandlehearthHallLocation auto
Location property WindhelmNewGnisisCornerclubLocation auto
Location property FalkreathDeadMansDrinkLocation auto
Location property DragonBridgeFourShieldsTavernLocation auto
Location property SolitudeWinkingSkeeverLocation auto
Location property MorthalMoorsideInnLocation auto
Location property NightgateInnLocation auto
Location property DawnstarWindpeakInnLocation auto
Location property MarkarthSilverBloodInnLocation auto
Location property OldHroldanInnLocation auto
Location property RiftenBeeandBarbLocation auto
Location property IvarsteadVilemyrInnLocation auto
Location property RoriksteadFrostfruitInnLocation auto
Location property RiverwoodSleepingGiantInnLocation auto
Location property WhiterunBanneredMareLocation auto
Location property WhiterunDrunkenHuntsmanLocation auto
Location property WinterholdTheFrozenHearthLocation auto

Actor property PlayerRef auto
Keyword property ActorTypeUndead auto
Keyword property ImmuneParalysis auto

float property MAX_DRUNK = 120.0 autoReadOnly
float property MIN_DRUNK = 0.0 autoReadOnly

int DRINKTYPE_ALE = 1
int DRINKTYPE_WINE = 2
int DRINKTYPE_LIQUOR = 3

float ALE_AMOUNT = 12.0
float WINE_AMOUNT = 32.0
float LIQUOR_AMOUNT = 52.0
float AMOUNT_VARIANCE = 10.0

float SOBER_RATE = 10.0

float property update_interval = 0.5 auto hidden
float property last_update_time auto hidden
float last_drunk = 0.0
float last_hangover_time

function AlcoholConsumed(int drinktype)
{'fraction_non_alphanumeric': 0.016752289479562206, 'fraction_numerical': 0.01429528702255975, 'mean_word_length': 7.156648451730419, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3000668', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1245, 'n_words': 398}