;  Bottoms Up Alcohol mod - v1.2
;by justokin - https://www.nexusmods.com/reddeadredemption2/mods/1894/
;------------------------------------------
; This mod allows you to use the in-game scenarios to drink Beer and Whiskey whenever you like.
;
; To use stand still and press NumpadDivide to Drink Beer and NumpadMultiply to drink Whiskey.
; By Default drinking Whiskey requires any Kentucky Bourbon in you inventory.
;
; Added Option to remove Wolf Heart Trinket and its effects
;
; Alternate Drinking mode - will consume any common alcohol  in inventory 
;
; Change Hotkeys and settings in BottomsUp.ini 
;
;    Keycodes are on this webpage; use values on the left that look like this: 0x0064
; https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tvtt/261ddfb0-ce10-4380-9b7a-4b50f482b8ec
;
***Install Instructions*** 

Place BottomsUp.asi , BottomsUp.ini and lml folder into game directory. 


Added new lml file to be used with Alternate Drinking the only requirement is Lenny's Mod Loader. 

Optional Replace Rum with beer:

Activate Bottoms Up in Lenny's Mod Loader, set to load after and set to overwrite RedDeadOffline
Alternatively, there are manual intstructions to edit catlog_sp.ymt yourself below


***

Requirements: 

http://www.dev-c.com/rdr2/scripthookrdr2/
ASI Loader - d8input.dll or version.dll


No longer requires Scripthook.net. If updating remove any BottomsUp files from your scripts folder


Limitations: 
This Mod uses the vanilla drinking scenarios, so basically it will function the same as grabbing a whiskey bottle at camps.
e.g. Cant grab a bottle while sitting or in other animations.


Optional to Replace Rum with beer 

Lenny's Mod Loader
https://www.rdr2mods.com/downloads/rdr2/tools/76-lennys-mod-loader-rdr/

Red Dead Offline
https://www.rdr2mods.com/downloads/rdr2/weapons/103-red-dead-offline/


; Changlog:
; 1.2 
; By Default mod will not require Guarma rum to drink beer, added ini setting.
; Added Setting to Remove Wolf Heart Trinket
; Added Alternate drinking mode
; Bug fixes, small QOL changes
; 1.0 
; Changed Script to ASI file.
; Added inventory requirements to drink
; Bug fixes , disabled mod on horse, fixed animations etc
; Added ui/sounds when used
; Updated ini Settings with more options.



Let me know of any issues



Cheers!




Optional

***Manual Instructions to Replace Rum with beer - UI/Text

Below are the instructions for manual editing catlog_sp.ymt and strings.gxt2 files.
Only required for compatiblilty issues if have another mod that overwrites catlog_sp.ymt


1. Open Lenny's Mod Loader select Red Dead Offline and open mod folder location.
2. Open strings.gxt2  in a txt editor.
3. Add The following lines to the end of the file:


CONSUMABLE_RUM2 = Guarma Rum
CONSUMABLE_RUM = Guarma Beer
CONSUMABLE_RUM_DESC = Cheap Mexican Beer. Restores Stamina Core.
0xB6B53636 = Cinco Torres Guarma Beer is Brewed Mexico and imported. Nothing equals it for refreshment or price


4. In the Red Dead Offline folder goto catalog, open catlog_sp.ymt in txt editor.
5. Use Ctrl+F:  key="CONSUMABLE_RUM">
Should be approx. line # 79637. Your file might be slightly different.

6.Replace the Rum UI - Replace lines # 796387 - 796519 with the lines below 
Make sure it all lines up correctly 



<item key="CONSUMABLE_RUM">
        <key>CONSUMABLE_RUM</key>
        <category>CI_CATEGORY_PROVISION</category>
        <group>CONSUMABLE</group>
        <UNK_MEMBER_0x093520C7/>
        <flags>0xD5BDA008</flags>
        <model>S_GINSENGELIXIR01X</model>
        <priorityaccess/>
        <tags>
          <item>
            <key>0x3B952FEE</key>
            <type>0xC76BC07D</type>
          </item>
          <item>
            <key>0x445E28FD</key>
            <type>0x42D03BDE</type>
          </item>
          <item>
            <key>CI_TAG_ITEM_ALCOHOL</key>
            <type>0x42D03BDE</type>
          </item>
          <item>
            <key>0xA91BC5E4</key>
            <type>0x42D03BDE</type>
          </item>
          <item>
            <key>0xF47E8343</key>
            <type>0x42D03BDE</type>
          </item>
        </tags>
        <acquirecosts>
          <item>
            <key>COST_SHOP_DEFAULT</key>
            <quantity value="1"/>
            <costtype>COST_TYPE_PRICE</costtype>
            <items>
              <item>
                <item>CURRENCY_CASH</item>
                <quantity value="75"/>
              </item>
            </items>
            <unlocks/>
          </item>
        </acquirecosts>
        <sellprices>
          <item>
            <key>SELL_SHOP_DEFAULT</key>
            <quantity value="1"/>
            <costtype>COST_TYPE_PRICE</costtype>
            <items>
              <item>
                <item>CURRENCY_CASH</item>
                <quantity value="35"/>
              </item>
            </items>
            <unlocks/>
          </item>
        </sellprices>
        <satchel>
          <size>0xB1C6ECC3</size>
        </satchel>
        <ui>
          <key>CONSUMABLE_RUM</key>
          <description>CONSUMABLE_RUM_DESC</description>
          <localization>
            <item>
              <type>LABEL_TYPE_BRAND</type>
              <values>
                <item>0x77E9D30A</item>
              </values>
            </item>
            <item>
              <type>LABEL_TYPE_CATALOGUEDESC</type>
              <values>
                <item>0xB6B53636</item>
              </values>
            </item>
          </localization>
          <textures>
            <item>
              <id>CONSUMABLE_GINSENG_ELIXIER</id>
              <dict>INVENTORY_ITEMS</dict>
              <type>INVENTORY</type>
            </item>
            <item>
              <id>UI_CONSUMABLE_RUM</id>
              <dict>ITEM_TEXTURES</dict>
              <type>GRID_OF_4_LAYOUT_0</type>
            </item>
          </textures>
        </ui>
        <multiplicity>
          <item>
            <quantity value="-1"/>
            <slotid>0x550898DE</slotid>
          </item>
          <item>
            <quantity value="-1"/>
            <slotid>0xAEEE1782</slotid>
          </item>
          <item>
            <quantity value="0"/>
            <slotid>0xD7E2D44A</slotid>
          </item>
          <item>
            <quantity value="3"/>
            <slotid>0x409F50CB</slotid>
          </item>
          <item>
            <quantity value="2"/>
            <slotid>0xBE85CADE</slotid>
          </item>
          <item>
            <quantity value="94"/>
            <slotid>0x04718245</slotid>
          </item>
        </multiplicity>
        <effectids>
          <item>
            <key>EFFECT_STAMINA_CORE_4</key>
          </item>
          <item>
            <key>EFFECT_CALORIES_3</key>
          </item>
        </effectids>
        <expiry>
          <abs value="0"/>
          <purge value="0"/>
        </expiry>
      </item>












