Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ben_pollard committed Jan 30, 2024
1 parent c5460b4 commit 9124fd5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class HtmlSceneFrameBuilder(
private val roomMapBuilder: GridRoomMapBuilder,
private val frameSize: Size,
private val displayMessagesInIsolation: Boolean = true,
private val suppressMovementMessages: Boolean = true,
private val suppressMovementMessages: Boolean = true
) : SceneFrameBuilder {
private fun isMovementConfirmation(message: String): Boolean {
if (message.isNotEmpty()) {
Expand Down Expand Up @@ -61,7 +61,7 @@ public class HtmlSceneFrameBuilder(
playableCharacter: PlayableCharacter,
message: String,
contextualCommands: List<CommandHelp>,
keyType: KeyType,
keyType: KeyType
): Frame {
val leftMargin = 2
val displayMessage = message.isNotEmpty() && (!isMovementConfirmation(message) || !suppressMovementMessages)
Expand All @@ -87,8 +87,8 @@ public class HtmlSceneFrameBuilder(
extendedDescription = extendedDescription.addSentence(
StringUtilities.createViewpointAsString(
room,
viewPoint,
),
viewPoint
)
)
}

Expand Down

0 comments on commit 9124fd5

Please sign in to comment.