Coder Social home page Coder Social logo

haggbart / rustplugin-scraponomics Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 57 KB

Adds ATM UI with simple, intuitive functionality to vending machines and bandit vendors

Home Page: https://umod.org/plugins/scraponomics-lite

License: GNU General Public License v3.0

C# 100.00%
rust-plugin

rustplugin-scraponomics's Introduction

Adds ATM UI with simple, intuitive functionality to vending machines and bandit vendors where players may deposit or withdraw their precious scrap for a small fee.

Players are rewarded interest daily.

  • UI adjusts properly to any resolution
  • Option to restrict ATM access from player placed vending machines
  • Option to automatically reset data on map wipe
  • Set fees, starting balance and interest rate

Usage

The UI will appear when using Vending Machine or Bandit Vendor:

An interest rate of 0.10 or 10% means 50 scrap in the bank will reward 5 scrap after 1 day.

Configuration

{
  "feesFraction": 0.05,
  "startingBalance": 50,
  "allowPlayerVendingMachines": false,
  "resetOnMapWipe": true,
  "interestRate": 0.1
}

Localization

{
  "PaidBrokerage": "Paid the brokerage fee of {0} scrap.",
  "Deposit": "Deposit",
  "Withdraw": "Withdraw",
  "Balance": "Balance: {0} scrap",
  "Amount": "amount",
  "ATM": "ATM",
  "RewardInterst": "You've earned {0} scrap in interest."
}

Developer API

private object SetBalance(ulong userId, int balance);  // returns true if successful, else null
private object GetBalance(ulong userId);  // returns int if successful, else null

Credits

CUI inspired by Skipcast's Furnace Splitter plugin

rustplugin-scraponomics's People

Contributors

haggbart avatar umod-org[bot] 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.