PlaneShift

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Engine → Crafting
  • Assigned To
    weltall
  • Operating System
  • Severity Very Low
  • Priority
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: PlaneShift
Opened by Orgonwukh - 11.07.2008
Last edited by aurelynt - 25.07.2009

FS#1918 - Typo in message when repairing in combat

If you try to repair anything in combat the following message appears:
“You cannot repair anything because you are combat.” I think it should be “[…] you are in combat.”

Closed by  aurelynt
25.07.2009 21:40
Reason for closing:  
peeg commented on 11.07.2008 09:57

True.

Note: psCharacter::GetModeStr() will return "combat" if the character is in combat, "spell casting" if the character is casting a spell and so on … Simply adding the word "in" to the message (psWorkManager::HandleRepair()) will break all other cases.

nobody special commented on 18.07.2008 21:10

Perhaps it would make sense to add the "in" to "combat" thusly "in combat" as the mode text.

weltall commented on 27.07.2008 08:01

or an if for the case if changing the mode with "in combat" breaks other messages…

Anonymous Submitter commented on 23.07.2009 22:18

You cannot repair anything because you are in battle ←- there and done.

nobody special commented on 23.07.2009 23:26

From Peegs comment it would seem most logical to just use "fighting" as the mode word. so: "You cannot repair anything because you are combat fighting." It appears that the problem stems from the use of a static noun instead of an active verbal noun Combat is a thing that occurs but not something one is doing. Combatting would be correct, more or less but rather awkward. I suppose one really has to look at where and how else psCharacter::GetModeStr() is used.

Looking at the source code (revision 4111) I see const char * psCharacter::player_mode_to_str[] = {"unknown","peace","combat","spell casting","working","dead","sitting","carrying too much","exhausted", "defeated"}; This is an odd mix of nouns verbs and adjectives. I believe I misidentified the part of speech required, fighting would be a verb not a verbal noun. Peace and combat are the two nouns, In other places an adjective is appropriate such as "exhausted" or "defeated", "carrying too much" probably should be changed to "encumbered" if only for simplicity and consistency, dead has no alternative. Spell casting, working and sitting are the verbs that seem worth keeping.

I haven't look too much at how these are used specifically but these are some preliminary thoughts.

weltall commented on 24.07.2009 07:44

committed a fix

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing