addGold

fun addGold(delta: Int)

Modify gold by a given amount making sure it does neither overflow nor underflow.

Parameters

delta

the amount to add (can be negative)

Sources

jvm source
Link copied to clipboard