mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-05 05:00:20 +00:00
added away from keyboard field to player and ways to flag it (#480)
This commit is contained in:
parent
634d57628a
commit
4da6f9d618
2 changed files with 90 additions and 66 deletions
|
|
@ -50,6 +50,7 @@ class Player(private val core : Avatar) extends PlanetSideServerObject
|
|||
private var jumping : Boolean = false
|
||||
private var cloaked : Boolean = false
|
||||
private var fatigued : Boolean = false // If stamina drops to 0, player is fatigued until regenerating at least 20 stamina
|
||||
private var afk : Boolean = false
|
||||
|
||||
private var vehicleSeated : Option[PlanetSideGUID] = None
|
||||
|
||||
|
|
@ -402,11 +403,19 @@ class Player(private val core : Avatar) extends PlanetSideServerObject
|
|||
}
|
||||
|
||||
def Fatigued : Boolean = fatigued
|
||||
|
||||
def Fatigued_=(isFatigued : Boolean) : Boolean = {
|
||||
fatigued = isFatigued
|
||||
Fatigued
|
||||
}
|
||||
|
||||
def AwayFromKeyboard : Boolean = afk
|
||||
|
||||
def AwayFromKeyboard_=(away : Boolean) : Boolean = {
|
||||
afk = away
|
||||
AwayFromKeyboard
|
||||
}
|
||||
|
||||
def PersonalStyleFeatures : Option[Cosmetics] = core.PersonalStyleFeatures
|
||||
|
||||
def AddToPersonalStyle(value : PersonalStyle.Value) : (Option[Cosmetics], Option[Cosmetics]) = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue