… | |
… | |
735 | rangetostring (player *pl, char *obuf) |
735 | rangetostring (player *pl, char *obuf) |
736 | { |
736 | { |
737 | dynbuf_text buf; |
737 | dynbuf_text buf; |
738 | |
738 | |
739 | if (pl->ranged_ob) |
739 | if (pl->ranged_ob) |
740 | buf << " Range: " << pl->ranged_ob->name; |
740 | buf << " Range" << (pl->ob->current_weapon == pl->ranged_ob ? "*" : "") << ": " << pl->ranged_ob->name; |
741 | |
741 | |
742 | if (pl->combat_ob) |
742 | if (pl->combat_ob) |
743 | buf << " Combat: " << pl->combat_ob->name; |
743 | buf << " Combat" << (pl->ob->current_weapon == pl->combat_ob ? "*" : "") << ": " << pl->combat_ob->name; |
744 | |
744 | |
|
|
745 | //TODO: maybe golem should become the current_weapon, quite simply? |
745 | if (pl->golem) |
746 | if (pl->golem) |
746 | buf << " Golem: " << pl->golem->name; |
747 | buf << " Golem*: " << pl->golem->name; |
747 | |
748 | |
748 | buf.linearise (obuf); |
749 | buf.linearise (obuf); |
749 | obuf [buf.size ()] = 0; |
750 | obuf [buf.size ()] = 0; |
750 | } |
751 | } |
751 | |
752 | |