Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer Service #1247

Merged
merged 14 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ world {

# How the server is displayed in the server browser.
# One of: released beta development
server-type = released
server-type = development
}

# Admin API configuration
Expand Down Expand Up @@ -408,8 +408,14 @@ game {
base = 25
}
{
name = "router"
name = "router-driver"
base = 15
shots-multiplier = 1.0
}
{
name = "telepad-use"
base = 20
shots-multiplier = 1.0
}
{
name = "hotdrop"
Expand Down
11 changes: 8 additions & 3 deletions src/main/scala/net/psforever/actors/session/AvatarActor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,11 @@ class AvatarActor(
var supportExperienceTimer: Cancellable = Default.Cancellable
var experienceDebt: Long = 0L

private def setSession(newSession: Session): Unit = {
session = Some(newSession)
_avatar = Option(newSession.avatar)
}

def avatar: Avatar = _avatar.get

def avatar_=(avatar: Avatar): Unit = {
Expand All @@ -1156,7 +1161,7 @@ class AvatarActor(
postLoginBehaviour()

case SetSession(newSession) =>
session = Some(newSession)
setSession(newSession)
postLoginBehaviour()

case other =>
Expand All @@ -1176,7 +1181,7 @@ class AvatarActor(
Behaviors
.receiveMessage[Command] {
case SetSession(newSession) =>
session = Some(newSession)
setSession(newSession)
Behaviors.same

case SetLookingForSquad(lfs) =>
Expand Down Expand Up @@ -1329,7 +1334,7 @@ class AvatarActor(
Behaviors
.receiveMessagePartial[Command] {
case SetSession(newSession) =>
session = Some(newSession)
setSession(newSession)
Behaviors.same

case ReplaceAvatar(newAvatar) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class SessionActor(middlewareActor: typed.ActorRef[MiddlewareActor.Command], con
if (mode != newMode) {
logic.switchFrom(data.session)
mode = newMode
logic = mode.setup(data)
logic = newMode.setup(data)
}
logic.switchTo(data.session)
}
Expand Down
Loading
Loading