Repository navigation
NX earned per kill / per hour at env rates (row 205 NX source 3) - #1005
Merged
Merged
Conversation
…MS_NX_PER_HOUR per hour online (both off by default), banked at autosave, Cash Shop entry and logout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Row 205, NX source 3: NX earned by playing, at env rates that default to off.
net::rates::nx()reads two env rates. Each is a positive integer, and 0 (off) when unset or invalid:RUSTMS_NX_PER_KILL: NX Credit for each kill the player loots, so one award per kill even in a party.RUSTMS_NX_PER_HOUR: NX Credit for each hour connected to a channel. It comes with a pink line, "You earned N NX Credit for an hour of play.", which is skipped while the player is in the Cash Shop.nx_earned) and moves it to the account withdb::cash_shop::grantat each 60 s autosave, on entering the Cash Shop (before the balances are read) and on logout or channel change. Kills therefore cost no database write of their own. If a bank fails, the total is kept for the next try.RUSTMS_NX_PER_KILL: "1". No other test both kills and checks a balance (checked with grep).Tests:
nx_rates_are_off_unless_set_to_a_positive_number.earned_nx: kill 3 snails, enter the shop, and the NX Credit is 3.beginner_skills,cash_shop_purchases,cash_coupons,gm_commandsandmonster_bookpass.