mark inactive players in playerName
This commit is contained in:
@@ -49,8 +49,12 @@ playerDetails p = unlines $ top ++ [""] ++ table
|
||||
playerName :: Player -> String
|
||||
playerName p = let
|
||||
|
||||
prefix = if p^.pActive
|
||||
then ""
|
||||
else "*"
|
||||
|
||||
suffix = if p^.pRookie
|
||||
then "*"
|
||||
else ""
|
||||
|
||||
in p^.pName ++ suffix
|
||||
in prefix ++ p^.pName ++ suffix
|
||||
|
||||
Reference in New Issue
Block a user