You are viewing a potentially older version of this package. View all versions.
JunLethalCompany-GamblingMachineAtTheCompany-1.0.4 icon

GamblingMachineAtTheCompany

Adds a gambling machine to gamble your scraps at The Company moon. A great last ditch effort to not get ejected... or maybe you're just a gambling addict. Clients automatically sync with hosts gambling configuration when they join. Good luck!

Date uploaded 11 months ago
Version 1.0.4
Download link JunLethalCompany-GamblingMachineAtTheCompany-1.0.4.zip
Downloads 4224
Dependency string JunLethalCompany-GamblingMachineAtTheCompany-1.0.4

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Gambling Is The Only Way

Description

"To make your ambitions come true, you have to take risks."

Adds a gambling machine at "The Company" moon. You'll see it right in front of you when you land.

The gamble roll can have 5 results (these are configurable):

  • Jackpot = 10x
  • Triple = 3x
  • Double = 2x
  • Halve = 0.5x (scrap reduced by half)
  • Zero = 0x (scrap is worthless)

The default gambling chances (these are configurable):

  • Jackpot = 3%
  • Triple = 11%
  • Double = 27%
  • Halve = 47%
  • Zero = 12%

How to use the gambling machine

While holding a scrap, walk up to the machine and press "E" (your interaction key). Gambling machine

Features

  • Gambling
  • Configurable fields for gambling chances and multipliers
  • Client's configuration automatically syncs with the host

Configurable Fields

  • Gambling Chance fields (make sure these fields add up to 100; if not it'll still work, but math will be inaccurate)
    • Jackpot Chance
    • Triple Chance
    • Double Chance
    • Halve Chance
    • Zero Chance
  • Gambling Multipliers
    • Jackpot Multiplier
    • Triple Multiplier
    • Double Multiplier
    • Halve Multiplier
    • Zero Multiplier
  • Audio (Client side)
    • Enable machine music
    • Machine music volume

Bugs

This is my first real mod so there'll be bugs!

Please report any bugs here: https://github.com/JunyDeveloper/GamblingModLethalCompany/issues

Support me for more mods :)

https://ko-fi.com/jundevlethal

CHANGELOG

CHANGELOG

1.3.5

  • Fixed bug where logging out of The Company moon and joining another game would make the ship get stuck in orbit

1.3.4

  • Add configuration to add up to 3 gambling machines!
  • Add configuration to limit the number of uses on a gambling machine
  • Add a fix to prevent machines from getting triggered multiple times when everyone is trying to interact with one machine
  • Fix gambling machine showing while in orbit
  • Font size changes

1.2.3

  • Updated the interaction text and font

1.1.3

  • Updated the configurable multiplier fields to allow decimal numbers (previously only allowed whole numbers)
  • Changing the machine's cooldown is now available in the configuration file! (Thanks Adam759 for working on this!)

1.1.2

  • Fix gambling result audio not playing for other players

1.1.1

  • Maybe fixed bug that allowed multiple people to constantly spam the machine (gambling addicts...) which caused strange gambling outcomes!
  • Maybe helped alleviate some desync for scrap value
  • For the default configuration, increase halve chance by 3% and decrease double by 3%

1.1.0

  • Update readme

1.0.9

  • For the default configuration, increase double chance by 3% and decrease zero chance by 3%

1.0.8

  • Fix gambling machine activating multiple times in one interaction

1.0.7

  • Fix interaction key showing up incorrectly

1.0.6

  • Changed scrap value currency dollar icon to match the ingame currency icon
  • Update interaction key displayed on screen to be the user's set interaction key

1.0.5

  • Updated readme for feature request

1.0.4

  • Updated readme

1.0.3

  • Configurable fields to enable music and to set music volume

1.0.2

  • Update readme format

1.0.1

  • Update readme

1.0.0

  • Release