Git Product home page Git Product logo

raritytiedspawner's Introduction

Rarity Tied Spawner (RTS) is a mod for HBS's Battletech computer game. It is a small, focused mod with a single purpose - adjusting the rarity of units based on their tags. The mod's homepage is https://github.com/BlueWinds/RarityTiedSpawner, where you can always find the most up to date source code.

RTS is distributed under the GNU General Public License v3.0 license. Special permission is granted to Battletech Advanced: 3062 and Roguetech to distribute this alongside Custom Bundle and other proprietary code. Please reach out to BlueWinds on github, or the BTA/RogueTech discords for more details.

moreCommonTags

In settings.json, moreCommonTags is a dictionary of tags, mapping each to an integer.

When the game spawns random units for a lance, it makes a list of all units that match the lance's tags. For each unit, RTS then calculates a toAdd value based on its tags, and pushes that many copies of the unit onto the list.

Think of it as a bunch of raffle tickets in a hat. If a unit matches a tag in moreCommonTags, then RTS puts additional copies of that unit into the hat the game pulls from. Simple.

toAdd can be negative in the configuration, but the total can never go below 0. "unit_never_spawn": -1000 will not remove the initial copy of a unit from the list, but it will counteract any other moreCommonTags the unit might also have.

raritytiedspawner's People

Contributors

bluewinds avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

h4ilst0rm

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.