This is the general holding class for a sts2 player at a point in the run.
Note
All fields in this are considered to be "at the end of this floor". For example current_hp on a floor where a player dies will be 0, even if they entered the fight with more than 0 HP.
Public fields
floorThe STS2Floor object this midrun object refers to.
playerThe STS2Player object this midrun object refers to.
current_goldCurrent gold.
current_hpCurrent health.
damage_takenDamage taken during the floor.
gold_gainedGold gained.
gold_lostGold lost.
gold_spentGold spent.
gold_stolenGold stolen (damn gremlins).
hp_healedHealth recovered during the floor.
max_hpMax health.
max_hp_gainedMax health gained during the floor.
max_hp_lostMax health lost during the floor.
player_idThe id of the player within the run data.
ancient_choiceThe choices available from the ancient (and which was picked).
bought_colorlessThe colorless cards bought during the floor.
bought_potionsThe potions bought during the floor.
bought_relicsThe relics bought during the floor.
card_choicesThe card choices available.
cards_enchantedThe cards enchanted during the floor.
cards_gainedThe cards gained from the floor.
cards_removedThe cards removed during the floor.
cards_transformedThe cards transformed during the floor.
completed_questsThe quests completed on the floor.
event_choicesThe choices made during the event (not in a particularly useful form).
potion_choicesThe potion choices available.
potion_discardedThe potions discarded during the floor.
potion_usedThe potions used during the floor.
relic_choicesThe choices available from the floor (and which was picked).
relics_removedThe relics removed during the floor.
rest_site_choicesThe rest site choices (and which was picked).
upgraded_cardsThe cards upgraded during the floor.
Methods
Method new()
Create a new mid-run player object from player data.
Usage
STS2PlayerMidrun$new(playerstats, floor = NULL, player = NULL)Arguments
playerstatsThe individual player_stats output from jsonlite, usually passed in via STS2Player.
floorThe STS2Floor object this midrun object refers to.
playerThe STS2Player object this midrun object refers to.