Sub topic 3
Sources: Where Currency Enters the Game
This chapter assumes you know the basics of how games reward and charge players, and that you can read short Python snippets and do rate arithmetic. It covers how currency enters a game. How it leaves, and what happens when the two flows disagree, are covered in later chapters.
What counts as a source
A source (also called a faucet) is any mechanism that increases the total amount of a currency held by players. The test is simple: after the event, does the game hold more of that currency in player wallets than before? If yes, it is a source.
Moving currency between players, as in a trade, is not a source. The total does not change. Taking currency out of a wallet is a sink, not a source.
The main kinds of source
Most sources fall into a handful of families. A single game usually has several.
| Family | Example | Rate pattern | Main risk |
|---|---|---|---|
| Scripted rewards | Quest or level completion payout | Fixed, limited by content | Runs out, so players feel stalled |
| Repeatable activity | Enemy drops, dailies, farming spots | Scales with time spent | The best spot dominates play |
| Time-gated or passive | Idle income, login bonus, energy refill | Scales with calendar time | Rewards waiting over playing |
| Event or promotional | Season rewards, compensation gifts | Bursty, one-off | Injects a lump that distorts prices |
| Item liquidation | Selling loot to a vendor, salvaging gear | Indirect, driven by item drops | Easy to forget when auditing income |
| Purchase | Real-money currency packs | Player-driven, unbounded by play | Fairness and pacing, covered later |
Direct and indirect sources
Some sources pay currency directly, such as a quest that gives 250 gold. Others pay in items, which the player then converts to currency by selling them to the game. The second kind is an indirect source. The item drop is not income until the vendor buys it, but a vendor with a fixed buy price turns every drop into a guaranteed payout.
Teams often audit only the direct sources and then wonder why the real inflow is higher than planned. Every item that can be sold to the system must be counted as part of the source that dropped it.
Properties to specify for every source
Treat each source as a small contract. Before building one, decide these properties.
- Average yield per completion. Use the expected value if the payout is random.
- Completions per hour. How often can a typical player repeat it? This depends on travel time, cooldowns, and competition for spawns.
- Bounds. Is there a cap per day, a cooldown, or a finite supply? A source with no bound is the most dangerous property to leave unspecified.
- Variance. Does every completion pay the same, or does it pay rarely and a lot?
- Scaling. Does the yield depend on player level, on current wealth, or on nothing?
- Access. Who can use it: everyone, only advanced players, only paying players?
Scaling deserves care. A source whose yield grows with the player's current balance, like interest, produces exponential growth for the players who already have the most. Use it only when you want that effect and have a limit in place.
Measuring income from a source catalogue
Write down every source with its yield and rate, then compute hourly income. This turns the earlier properties into numbers you can compare. The expected-value helper handles random drops.
def expected_value(outcomes):
"""outcomes is a list of (probability, amount) pairs that sum to 1."""
assert abs(sum(p for p, _ in outcomes) - 1.0) < 1e-9
return sum(p * amount for p, amount in outcomes)
kill_reward = expected_value([(0.70, 0), (0.25, 10), (0.05, 70)]) # 6.0
# name -> (average yield per completion, completions per hour)
sources = {
"quests": (250, 1.2),
"enemy_drops": (kill_reward, 40),
"vendor_sales": (15, 8),
}
hourly = {name: yield_ * rate for name, (yield_, rate) in sources.items()}
total = sum(hourly.values())
for name, income in hourly.items():
print(f"{name:<14}{income:>8.1f}{income / total:>8.1%}")
print(f"{'total':<14}{total:>8.1f}")The output is:
quests 300.0 45.5%
enemy_drops 240.0 36.4%
vendor_sales 120.0 18.2%
total 660.0Two things to read from this table. The total, 660 per hour, is the number you will use later to price items from a target time-to-earn. The shares show which source the economy depends on. If quests are 45% of income and you change quest rewards, nearly half of your economy moves with them.
How sources reach the player
The diagram shows several sources feeding one wallet, with the vendor path as an indirect source.
Common design problems
The best source wins
Players optimize. If one activity pays 30% more per hour than the others, most players will do only that activity, and the rest of your content goes unused. Compare hourly yields across sources in the same difficulty and access range. Large gaps need a reason, such as higher risk or a skill requirement.
Unbounded repeatable sources
A repeatable source with no cap turns playing time directly into currency. That is acceptable if the rate is constant and you have priced against it. It becomes a problem when players can raise the rate through automation, groups, or a faster route. Caps, cooldowns, and diminishing returns (each repeat paying less within a window) keep the rate predictable.
Finite scripted sources
Quest rewards run out. A player who has completed all quests still needs income, so the repeatable sources must carry the late game. Plan which source takes over when the scripted ones are exhausted, and check that the handover does not cut hourly income sharply.
Bursts from events and gifts
An event that gives every player 10,000 gold in one day is a large one-time injection. It can make prices in a player market jump, or let players skip content you meant them to pay for with time. Size compensation and event grants against the hourly income from your catalogue. 10,000 gold is about 15 hours of play at 660 per hour, which may be more than you intend.
Hidden and duplicate sources
Bugs and overlooked features create sources you did not design: a refund that returns more than the purchase price, an item that salvages for more than it costs to craft, or a quest that can be accepted twice. Every route for currency to enter should go through a labeled entry point, so that totals by reason can be audited. A later chapter shows a ledger that does this.
Choosing between source designs
When deciding how a reward should pay, compare the options on what matters for that reward.
- Fixed payout: predictable and easy to price against, but it feels flat and rewards repetition.
- Random payout: more exciting, and the average can still be controlled. Players with bad luck feel the variance, so check what a bad hour looks like, not only the average.
- Time-gated payout: controls pacing without content, but rewards waiting. This suits games where short sessions matter.
- Scaled payout: keeps rewards meaningful as prices rise with progression, but needs the scaling rule to track prices.
Exercise
A game has two sources. Dungeon runs give 400 gold per run and a player completes 1.5 runs per hour. Mob kills give an average of 4 gold each at 50 kills per hour, and 30% of that gold comes from items sold to a vendor. What is the total hourly income, and which source supplies the larger share? Is the vendor portion a direct or indirect source?
Show answer
Dungeons give 400 × 1.5 = 600 gold per hour. Mob kills give 4 × 50 = 200 gold per hour, for a total of 800 gold per hour. Dungeons supply 75% of income, so they are the larger share. The vendor portion is 30% of 200, which is 60 gold per hour. It is an indirect source, because the player first receives items and the sale to the vendor converts them to gold.