You are viewing a potentially older version of this package. View all versions.
Lega-CursedScraps-2.0.8 icon

CursedScraps

Some scraps may appear cursed, offering a more attractive price, but you will have to face this curse until reaching the ship.

Date uploaded 2 days ago
Version 2.0.8
Download link Lega-CursedScraps-2.0.8.zip
Downloads 4606
Dependency string Lega-CursedScraps-2.0.8

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
Evaisa-HookGenPatcher-0.0.5 icon
Evaisa-HookGenPatcher

Generates MonoMod.RuntimeDetour.HookGen's MMHOOK file during the BepInEx preloader phase.

Preferred version: 0.0.5
Rune580-LethalCompany_InputUtils-0.7.7 icon
Rune580-LethalCompany_InputUtils

API/Library for creating Unity InputActions with in-game re-binding support. Provides an alternative UI that allows for supporting mods to have in-game re-bindable keybinds.

Preferred version: 0.7.7
Evaisa-LethalLib-0.16.1 icon
Evaisa-LethalLib

Personal modding tools for Lethal Company

Preferred version: 0.16.1

README

Cursed Scraps

Cursed Scraps is a mod inspired by Strange Objects, revisiting the original concept but with different effects. Special thanks to the author of this other mod for their original idea, which inspired me to create my own version.

Description

Some scraps may appear cursed, offering a more attractive value, but you will have to face this curse until you return to the ship. When a cursed scrap is picked up, the curse is shared with the player, but this doesn't prevent another player from acquiring the same curse if they pick up the same scrap later. The curse remains active until the player returns to the ship, where all curses are removed. Storing a cursed scrap in the ship removes its curse, but its value remains the same.

Holy Water

This new item can spawn in the factory, and it can only be used when a curse is affecting the player. After using the item, all of the player's curses are removed; however, all of the items the player is carrying will drop to the ground, meaning the player won't be able to safely bring a cursed scrap back to the ship. This feature can be disabled.

Old Scroll

Consumable allowing the player to see the door's aura for a configurable amount of time. A version may exist for the Communication curse, where if the cursed player is linked to this scroll, it can only be consumed by that player – see curse information below.

Penalty mechanic

This new mechanic prevents players from ignoring cursed scraps too much ; each time a new cursed scrap is scanned, a counter increments for all players. When the counter reaches a configurable value, the next cursed scrap scanned applies its curse either to the player who scanned it or to the entire team (depending on the chosen difficulty). The counter and the list of scanned items are reset to 0 whenever a curse is applied to a player or at the start of the game.

Modes:

  • Hard - Applies the curse to the entire team.
  • Medium - Applies the curse only to the player who scanned the cursed scrap.
  • None - Do not use the mechanic.

Curses

  • INHIBITION - Prevents the player from jumping and crouching
  • CONFUSION - Reverses movement controls and jump/crouch keys for the player
  • CAPTIVE - Prevents all items carried by the player from being dropped as long as the curse is active
  • BLURRY - Reduces visual clarity on the player's camera
  • MUTE - Mutes the player's microphone
  • DEAFNESS - Removes the player's sound
  • ERRANT - Teleports the player randomly when an item is picked up or placed down
  • PARALYSIS - Paralyzes the player when red-scanning
  • SHADOW - All enemies are invisible by default (their sound is still active), scanning reveals them
  • DIMINUTIVE - Reduces the player's size and applies the following effects :
    • The movement speed is reduced
    • The grab distance is reduced
    • The player's voice is modified
    • Double jumping is possible, allowing passage through jumping rooms
    • Picked up objects are reduced in size but return to normal size when released
    • A normal-sized player can push or crush a reduced-sized player
  • EXPLORATION - Prevents the player from exiting or entering the factory through all doors except one
    • The player is then able to see the aura of the door they need to take from a certain distance (configurable); the aura disappears if they get too close
    • The door to be taken changes each time they enter or exit the factory
  • COMMUNICATION - When the player is cursed, the 'Old Scroll' item spawns and is bound to the cursed player:
    • The item can only be consumed by the cursed player (as long as he remains cursed)
    • The cursed player cannot leave the dungeon or be teleported until he has used the item
    • Dead players can help the cursed player to find this item:
      • Dead players can see the distance between the cursed player and the item
      • Dead players can send hints to the cursed player by indicating whether they are getting closer or further from the item (through a blue or red particles that the cursed player can see)

What happens next?

  • Rework of the 'Inhibition' curse.
  • New curses, including some ideas that were suggested to me (e.g., 'Hot Potato' / 'Fragile').

More informations

For any feedback/suggestions or questions, you can reach me on the 'Lethal Company Modding' Discord server (https://discord.gg/e4YCbQsx) under the same name (username lega2039). DMs are welcome.

CHANGELOG

CHANGELOG

Version 2.0.8

  • Fixed a bug that allowed items to spawn when deactivated even if they were unregistered
  • Fixed NullReference with SpectateEnemies for Communication curse
  • Removed the possibility of storing a cursed scrap in the BeltBag when a mod allowed scraps to be picked up with it
  • Added more compatibility for viewing door auras with custom interiors
  • Removed the ability to have the Exploration curse on the DevilMansion interior - doors don't have a renderer to show their auras
  • Modified the 'Renderer names' configuration section, as it is no longer linked solely to the Exploration curse

Version 2.0.7

  • Version update
  • Update to enable TrickOrTreat to work
  • Added config for a minimum number of items to spawn (within the 'Holy Water' and 'Old Scroll' sections)
  • Nerf some default values
  • Fixed an issue with the Shadow curse not resetting for a monster after being cleansed

Version 2.0.6

  • Code cleaning
  • REWORK curse aura
  • REWORK Communication, see README
  • ADDED 'LethalCompany InputUtils' as a dependency
  • ADDED config 'Cooldown duration' in 'Communication' - no longer used
  • ADDED item, Old Scroll, consumable that allows you to see the aura of the doors for a configurable time
  • ADDED configs 'Min particle scale' and 'Max particle scale' in 'Global'
  • ADDED new config 'Hide curse line' to hide curse line in scan node
  • ADDED list of curses assigned to a player visible by dead players
  • ADDED inability to teleport players with Communication (if they haven't yet found and used the linked item) and Exploration curses
  • REMOVED Synchronization, too time-consuming - I'm looking for a rework idea that also avoids the 'Coop' system, so that all curses can be affected by the penalty mechanic or in some other way
  • REMOVED config 'Chrono' in 'Communication' - no longer used
  • FIXED use of 'Hide scrap value' config instead of 'Hide curse name' to replace curse name with '???'
  • Increase default penalty counter from 5 to 10
  • Reduce default curse chance from 30 to 20
  • Add key as excluded item to 'Exclusion list' in 'Global'

Version 2.0.5

  • Rework of pills: replacement of pills with a new item 'Holy Water'. The functionality is also slightly different -> see README for details
  • Added the 'Penalty Mechanic' -> rework a part of the 'Hiding mechanic', now this tab will only have some global options related to the visibility of curses
  • Rework of 'Exploration': instead of adding a ScanNode for a certain time, it is now possible to see the aura of the door as long as the player is within a certain distance
  • Moved the configurations 'Enable red scan' and 'Enable particle' to the 'Hiding mechanic' tab for better organization
  • Removed the 'Hide particle when grabbing' configuration -> this is now the default behavior, as many particles obstruct the player's view when it's not
  • Added compatibility with the 'AddonFusion' mod -> the capsule Hoi-Poi can no longer contain cursed scraps
  • Changed the spawn method for curses -> now curses spawn when vanilla scraps spawn in the factory, fixing incompatibilities with mods that change item values via the vanilla method
  • Added the 'Hide curse name' config to hide the name of curses with '???'
  • Added the 'Hide scrap value' config to hide the value of curses with '???'

Version 2.0.4

  • Added a check to only apply curses to scraps that spawn in the dungeon (fixes an incompatibility with LethalCasino)
  • Added a check to prevent coop curses from spawning when the player is solo
  • Added a test to destroy scraps that still have a curse while in the ship at the end of the game (mainly for coop curses)
  • Added a test to kill players who still have a coop curse at the end of the game

Version 2.0.3

  • Added a config to enable/disable curse particles
  • Added a config to enable/disable the red scan node (fix an incompatibility with LGU's 'Better Scan' upgrade)

Version 2.0.2

  • Added a config to hide the information popup when the player is cursed
  • Added a config to hide the curse particle when picking up the scrap and make it reappear when dropping the scrap
  • Fixed an error with the Communication curse that made the player immobile even after dropping the scrap
  • Removed the ability to drop the scrap when the Synchronization curse is active on both players
  • To drop a scrap with a coop curse, both players must be in the ship
  • Fixed a crash when connecting to a save with items in the ship
  • Added an informational message that prevents the player from picking up a scrap with a coop curse if they have the Captive curse

Version 2.0.1

  • Forgot the asset file

Version 2.0.0

  • Mod Rewrite - this is primarily to clean up the code, optimize various aspects, and enable the addition of future curses that couldn't be implemented before (also potentially fixes several incompatibilities)
  • Deactivation of the 'EXPLORATION' curse, pills, and the hide mechanic - I plan to rework these features, they will return later
  • CAPTIVE - Players affected by this curse will no longer be able to drop any items (previously, it was only the cursed scrap)
  • PARALYSIS - Now applies not only to monsters but to all red scans
  • SYNCHRONIZATION - Added the ability to reorient the camera towards the controlled player to make the curse less impactful (use the tertiary action button on an item). This new feature only works when holding the cursed scrap
  • DIMINUTIVE - Collision with another player is now modified:
    • If a player jumps on the cursed player, he is are crushed and die
    • If a player collides with the cursed player while walking or running, he is pushed according to the force of the impact
  • Added a particle effect to identify cursed scraps without scanning
  • Added an exclusion list to prevent certain scraps from being cursed

Version 1.1.0

  • Recompiled for v56

Version 1.0.9

  • Fixed "You already have an active cooperation curse" message displayed for all curses

Version 1.0.8

  • Fixed some curses persisting after leaving a game
  • Added an exclusion list to prevent some enemies from being affected by the "Shadow" curse
  • Added new modes for the hiding mechanic

Version 1.0.7

  • Fixed an error that occurs during an interaction with nothing

Version 1.0.6

  • Added the curse 'Communication'
  • Added more configs
  • Change in the global chance configuration; it is now possible to configure it per moon (requires a manual update of the configuration with the new default value)
  • Resolved an incompatibility with EmergencyDice
  • Fixed some other bugs

Version 1.0.5

  • Added the curse 'Exploration'
  • Added a mechanic to hide curses, see README for more info
  • Change in behavior for removing effects upon arrival at the ship: all effects are now canceled even if cursed items are present in the inventory
    • This modification fixes some issues, including a problem with player acceleration upon canceling the 'Diminutive' curse

Version 1.0.4

  • Added controls to prevent teleportation from the ship and when attempting to throw a 'Captive' scrap

Version 1.0.3

  • Added the curse 'Diminutive'
  • Pill rework, see README for more info
  • Resolved an incompatibility with LethalSnap
  • Changed some values
  • Fixed a bug with 'Synchronization'
  • Fixed a bug where the 'Mute' curse could disable the 'Deafen' curse when applied to the player after the latter

Version 1.0.2

  • Added the curse 'Synchronization'
  • Corrected some bugs

Version 1.0.1

  • Fixed some potential null reference issues
  • Resolved an incompatibility with LethalThings
  • Resolved an incompatibility with Diversity
  • Corrected an error with invisible meshes on enemies

Version 1.0.0

  • Initial release