Coder Social home page Coder Social logo

cdda-extra-lives's Introduction

Extra Lives - v1.1.2

This mod is a fork from https://github.com/ProAtWorkHere/CDDA-Extra-Lives. All the code and ideas belongs to them, and with their blessing i was told i can fix what's broken.

Beware i have no idea what I'm doing! I'm merely motivated by how much i love this mod and I'm not sure if i will have the time or motivation to continue working on it as time goes on. Anyone more competent is welcome to fork this and continue the work with all the credits given.

Requires Experimental Build cdda-windows-tiles-sounds-x64-2024-01-31-0909 or newer! 0.G contains a bug with respawning that causes frequent crashes upon respawn.

This mod will break again as math functions, EOC and other things gets updated!!!

To install:

Drop this folder into the mods folder.

Features:

A choice of 5 difficulty levels, providing different amounts of starting lives, maximum extra lives, maximum extra lives cap, possible respawn options and the frequency of lives gained over time.

Every scenario will start with you with a number of extra lives, which is also the maximum you can have. This maximum can be increased in-game, to a cap.

Every 14/21/28/35 days you remain alive an extra life will be granted to you, up to your maximum extra lives, depending on your difficulty level.

Strange Stone Circles (SSC) can be found rarely in the wilderness, which contain altars that can be examined to set your current position as a respawn point. Only the most recently created respawn point is saved.

When you die:

Unless playing at tourist or easy, you will always drop all worn, wielded and carried items upon death. An extra life is spent if available, and then you will be respawned; Healing your entire body, removing all negative conditions, resetting all needs to satisfied, etc. CBMs and mutations are retained, as is any mutagenic material inside you. There are 3 kinds of respawns you will experience:

Here: You respawn right where you died. You gain 90 seconds of great speed, invisibility, no fall damage, waterbreathing and 30 seconds of incorporeality (immune to most things but you cannot interact with physical matter). You also emit waves of force for 5 seconds, continually knocking back nearby enemies.

At Strange Stone Circle: Same effects as respawning Here, except you are only given this option if you have previously found and activated an altar in a Strange Stone Circle. Brings you back to that location.

Randomly: A random location far away from your place of death in an unexplored region is selected and you are respawned there. You are granted 5 minutes of greater speed, invisibility, water breathing and fall damage immunity, and a temporary metaphysical body suit that provides cold climate protection (covers all parts of the body and can have anything worn over it).

Notes:

  • The altars in the Strange Stone Circles are incredibly heavy, but not impossibly immovable...

  • The random respawn takes some time to find a location to respawn you at. It's normal for the game to freeze up for a few moments while searching.

  • While Incorporeal, you are not able to interact with most things or pickup items, but you are completely immune to almost all damage.

  • The day counter for an additional extra life is not affected by dying, or any other factor. You will reliably regain an extra life every 14/21/28/35 days, depending on difficulty.

Bugs:

  • There are some bugs and oddities left that I don't know how to fix. For instance, overdosing on cocaine will continually kill you forever even after respawning.

Changelog:

v1.1.2:

  • Fixed respawn randomly not working.
  • Changed invisibility to 90 seconds.

v1.1.1:

  • Replaced old arithmetic functions with math to prevent crashes.

v1.1.0:

  • Complete overhaul of the mod's internal functions: There are now 5 difficulty levels to choose from, affecting factors such as extra lives, max extra lives, max extra lives cap, respawn options and life-gain-over-time.
  • Added logic to respawning that factors in certain variables and states when offering you your respawn options.
  • New location added, related to increasing maximum extra lives and/or gaining an extra life.
  • Random respawn now gives you a special, metaphysical bodysuit that provides protection from cold climates. Anything can be worn over it and it does not count towards encumbrance. Note however, that it cannot be removed once worn, and it lasts only a few hours before disintegrating. Previous system of cold protection did not work as intended.
  • Added missions adapted to the purpose of finding your corpse/dropped items, and showing the location of your selected respawn point.
  • Added Respawn Info Tablet, crafted with a single rock while near a respawn altar. Shows you your difficulty setting, info about your current, max and cap on extra lives, and shows you your respawn point via mission menu / map.
  • Various small tweaks and number changes.

v1.0.3:

  • Added temperature resistance to respawn effects. 5 minutes for respawns with an extra life available, and randwom respawn grants 2 hours worth.

v1.0.2:

  • Fixed logic with extra lives being set at 3 instead of 2.

v1.0.1:

  • Optimization and code formatting.
  • Moved heal/condition reset to an EoC and call it per respawn function instead of defined in each respawn EoC.

v1.0.0:

  • Initial public release.

cdda-extra-lives's People

Contributors

nebnis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.