Skip to content

Commit

Permalink
Minor improvement to aggressive chat messages (colon -> parens)
Browse files Browse the repository at this point in the history
- Colon splitting race and color is very weird.
- Not using simple space because it's not i18n-friendly (some languages, such as English indeed, prefer the color before the race, while others prefer it the other way around)

Alternative: Define a ``bool`` for each language to define the color adjective position preference.
  • Loading branch information
Slayer95 authored and SMUnlimited committed Nov 16, 2024
1 parent 5bc4ce8 commit ae20c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.eai
Original file line number Diff line number Diff line change
Expand Up @@ -3192,7 +3192,7 @@ function DisplayChat takes integer chat, boolean ally, boolean enemy, boolean ob
if chat == C_Goldproblem then
set parsed_chat = parsed_chat + " " + ApplyTrans("CurrentGold") + ":" + Int2Str(GetGold())
elseif chat == C_Ally or chat == C_Attack or chat == C_Megatarget then
set parsed_chat = parsed_chat + " " + ApplyTrans("Target") + ":" + ApplyTrans(GetChatVar("TargetColor"))
set parsed_chat = parsed_chat + " " + ApplyTrans("Target") + " (" + ApplyTrans(GetChatVar("TargetColor")) + ")"
endif
if chat == C_Greet then
if (HaveStoredInteger(amaiCache, Int2Str(GREETINGS_NUM), Int2Str(i))) then
Expand Down

0 comments on commit ae20c07

Please sign in to comment.