generic levelup, encumbrance code