-
Notifications
You must be signed in to change notification settings - Fork 94
Player Object
ply.name
The name of the user the player refers to. Returns a str
ply.deck
The deck of the player. Returns a list
of str
ply.hand
The hand of the player. Returns a list
of str
ply.bot
The bot object that the player initiated the game on. Returns a bot
object.
ply.energy
Player's current energy total. Returns int
ply.lifeforce
Player's current lifeforce total. Returns int
ply.active
Whether or not it's the player's turn. Returns bool
ply.nodes
The player's active Nodes. Returns list
of str
ply.log
List of messages to send ASAP. Returns list
of str
ply.maxNodes
Maximum amount of Nodes a player can have. Returns int
ply.milled
Returns True
if the player already milled this turn
ply.playedNode
Returns True
if the player already played a Node generator this turn
ply.hunger
Player's current Hunger stat. Returns int
ply.desperation
Player's current Desperation stat. Returns int
ply.opponent
Player's opponent. Returns Player
object
ply.cardsThisTurn
Amount of cards the player has played this turn. Returns int
ply.shuffle()
Shuffles the player's deck.
ply.addMaxNodes( int amt )
Increases the player's max nodes (up to 10) by the given int amt.
ply.newTurn()
Called when turns start. Cleanup function.
ply.newMyTurn()
Called when the player's turn starts. Cleanup function, calls the "NEW_TURN" trigger.
ply.drawCard()
Draws a card for the player.
ply.randomDiscard()
Discards a random card for the player.
ply.addNode( str nodeName )
Adds a Node to the player's list of active Nodes, by the node's exact name.
ply.burn( int amt )
Burns the specified amount of cards from the player's deck.
ply.removeNode( str nodeName, int enerCost )
Removes a player's Node. Highly recommend NOT to use this, as it is an internal function. Use mechanics.sacNode() instead.