Giter VIP home page Giter VIP logo

goldbank's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @Beanzilla
  • ๐Ÿ‘€ Iโ€™m interested in: programming, games and robotics.
  • ๐ŸŒฑ Iโ€™m currently learning: Python3 and Go
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on: games/programs
  • ๐Ÿ“ซ How to reach me: Just send me a issue on one of my active projects.

goldbank's People

Contributors

beanzilla avatar

Watchers

 avatar

goldbank's Issues

[ATM] Automatic ATM Card and PIN on first login

This feature would be that when a player joins who does not have an ATM account, is asked with a 60 second delay from login/join to assign a PIN, if the PIN is set correctly I.E. 5 digits, then the player is given a ATM Card.

This is to do away with the /set_pin #### chat command for creating an ATM account.

There will be an option to not set one up, or ask later (which waits 60 seconds then re-asks for a PIN).

Todo:

  • The mod identifies via on_joinplayer if the joining player has a account, if they do not a minetest.after set for 60 seconds is called to open a formspec for set PIN.
  • Once the PIN formspec has received the PIN and verified that is the PIN the player wants to use, the player is given a ATM Card.

[Shop] Shopping machines

This will have 4 categories (excluding the difference between admin shops).

Buy: Items can be bought with Gold notes (but the price is a number not an item, player's open the shop formspec by using either a Debit or Credit Card where the purchase will use either card, but the shop can be opened if the player opened it by using anything but a card then all available gold notes within the players inventory is used).

Sell: Items can be sold for Gold notes (the price is a number not an item, player's can open the shop's formspec using anything, if they use a Debit or Credit Card the purchase goes to the ATM account balance, regardless of credit owed, if not opened with a card the shop will check if it can place gold notes into the players inventory, if so it will place gold notes, else the purchase goes to the ATM account balance)

Trade: Items can be traded for other items (the price is a item, player's can open the shop using anything, if they used a Debit or Credit Card an additional check for any price using Gold notes is issued, in which those items can be bought or sold as if the player's inventory has gold notes but is transacted by the ATM account, if using a Credit card for buying the amount is placed onto the ATM account's credit owed, but if it was a sell the amount is added to the accounts balance not credit owed, if the player opened the shop's formspec with anything but a card then the price item is exactly what item it is, that is if it's gold notes the player must have the gold notes to proceed, and or inventory space)

All shops can be placed on top of a chest (assuming a locked chest) to allow for extra stock. (excluding admin shops, which have no stock limit and never run out of notes to give players from sell shops)

Todo:

  • Texture Buy shops
  • Texture Sell shops
  • Texture Trade shops
  • Texture Admin variants of Buy, Sell, and Trade shops
  • Support stated features of above shops
  • Admin shops also include 2 extra items per shop (this means Admin shops should take less space because they can have 6 items bought/sold/traded per node)

[Currency] GoldNote Re-Texture

I manually drew the numbers... but using text for the ATM Cards (ATM Card, Debit Card and Credit Card) were much nicer looking, at least outside of the game.

I might prefer to update the Gold Notes numbering to text instead of manually drawn.

Todo:

  • Retexture 1's
  • Retexture 5's
  • Retexture 10's
  • Retexture 20's
  • Retexture 50's
  • Retexture 100's

[Currency] Gold note

Gold ingots are the currency! But we want 1's 5's 10's 20's 50's 100's, so let's make it so each note is worth that amount in gold ingots.

Default Crafting:

  • 1's and 5's will be craft-able by directly putting 1 or 5 gold ingots into the crafting grid. (1's might break on MineClone as it may be interpreted as gold nuggets instead, gold nuggets are ignored by goldbank)

But you can also craft higher values with the gold note currency. (basically everything yellow with a number on them)

These will be individual items, as such smart shops and even currency's shops will work for now.

Todo:

  • Texture 1's
  • Texture 5's
  • Texture 10's
  • Texture 20's
  • Texture 50's
  • Texture 100's
  • Build default/native crafting of 1's and 5's via gold ingots
  • Build compounding crafting of 10's 20's 50's and 100's by 1's and 5's (i.e get 1 10 from merging 2 5's, get 1 5 from merging 5 1's, and so on)
  • Build down grading crafting of 1's 5's 10's 20's and 50's from higher gold notes (i.e. get 2 50's from splitting a 100, get 2 20's and 1 10 from splitting a 50, and so on)
  • Test basic crafting
  • Build a temporary convert of 1's and so on into gold ingots (so you can convert up to 100's into their gold ingot form, simply because max stack size will be either 99 or 64, but gold notes will have a maximum stack size)

[ATM] Automated Teller Machines

I love the idea/feel of bank_accounts atm concept, as such we'll be going for that kind of atm style (probably taking their atm model and working it into a goldbank atm)

Some idea changes:

  • Support 1 deposit slot determining if the item is a gold note, if so then what kind of note is it (i.e, 1's, 5's, 10's, 20's, 50's, or 100's), the count and then we know the gold note value of that, so deposit that amount, then eat the stack, ready for the next stack of gold notes.
  • Improve withdraw code to use the highest/best note sizes rather than limited to 1's 5's and 10's. (i.e. withdraw of 250 would result in 2 100's and 1 50's, not 25 10's, or 50 5's, or 250 1's, withdraw of 75 would result in 1 50's 1 20's and 1 5's)
  • The atm can tell if you have your atm card in your inventory and thus use it rather than insisting you use the atm card to open the atm.
  • Improve the atm formspec for PIN input (A: I'd like button formspec, B: Or at least fix it so enter will instead of closing the formspec simply enter the PIN)

Todo:

  • Texture of ATM determined
  • Texture of ATM Card
  • Texture of Debit Card
  • Texture of Credit Card
  • ATM requires a ATM Card within the player's inventory to open it's PIN verification formspec
  • ATM's PIN verification formspec has buttons for each number rather than text input box
  • ATM's deposit formspec (A: Shows current balance, B: Has one slot to insert gold notes into, processing each stack given into the balance, with update to balance as balance is updated, include space for an error mesage for invalid stacks that are not gold notes)
  • ATM's withdraw formspec increases to 9 slots
  • ATM's withdraw code handles higher than 10's upto 100's
  • ATM has a cooldown for requesting Debit and Credit Cards
  • ATM's automatically can pay off credit so long as there is gold notes within the balance
  • ATM's can also pay off a amount of credit immediately via it's main formspec
  • Remove the temporary to gold ingot conversion and add a more permament version within the ATM's main formspec (Withdraw Gold)
  • ATM's can be used to transfer gold notes to another ATM player account (i.e. transfer/pay)

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.