Professions
A player's twelve professions: experience and levels.
A handle to something in the game. Once that thing is gone, its calls fail with Gone. You get one from player.professions().
Methods
| Method | Description |
|---|---|
fn level(&self, profession: Profession) -> Result<i64>long level(Profession profession) | Their level in it. |
fn experience(&self, profession: Profession) -> Result<i64>long experience(Profession profession) | Their experience in it. |
fn add_experience(&self, profession: Profession, amount: i64) -> Result<()>void addExperience(Profession profession, long amount) player_data | Gives experience (it may level them up). |
Profession
One of the twelve professions.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Profession::MiningProfession.MINING | Mining. |
Profession::WoodcuttingProfession.WOODCUTTING | Woodcutting. |
Profession::FarmingProfession.FARMING | Farming. |
Profession::FishingProfession.FISHING | Fishing. |
Profession::ForagingProfession.FORAGING | Foraging. |
Profession::ExcavationProfession.EXCAVATION | Digging. |
Profession::CookingProfession.COOKING | Cooking. |
Profession::BlacksmithingProfession.BLACKSMITHING | Forge and anvil. |
Profession::CarpentryProfession.CARPENTRY | The workbench. |
Profession::AlchemyProfession.ALCHEMY | The cauldron. |
Profession::RanchingProfession.RANCHING | Ranching. |
Profession::TamingProfession.TAMING | Catching Voxelmon. |
Events
Related events: ProfessionLevelledUp.