1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2001 Mark Wedel |
5 | * Copyright (©) 2001 Mark Wedel |
6 | * Copyright (©) 1992 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
9 | * the terms of the Affero GNU General Public License as published by the |
… | |
… | |
735 | */ |
735 | */ |
736 | static void |
736 | static void |
737 | rangetostring (player *pl, char *obuf) |
737 | rangetostring (player *pl, char *obuf) |
738 | { |
738 | { |
739 | dynbuf_text &buf = msg_dynbuf; buf.clear (); |
739 | dynbuf_text &buf = msg_dynbuf; buf.clear (); |
|
|
740 | |
|
|
741 | printf ("%s %s => %s (%s)\n",//D |
|
|
742 | pl->ranged_ob ? &pl->ranged_ob->name : "-", |
|
|
743 | pl->combat_ob ? &pl->combat_ob->name : "-", |
|
|
744 | pl->ob->current_weapon ? &pl->ob->current_weapon->name : "-", |
|
|
745 | pl->ob->chosen_skill ? &pl->ob->chosen_skill->name : "-" |
|
|
746 | ); |
740 | |
747 | |
741 | if (pl->ranged_ob) |
748 | if (pl->ranged_ob) |
742 | buf << " Range" << (pl->ob->current_weapon == pl->ranged_ob ? "*" : "") << ": " << pl->ranged_ob->name; |
749 | buf << " Range" << (pl->ob->current_weapon == pl->ranged_ob ? "*" : "") << ": " << pl->ranged_ob->name; |
743 | |
750 | |
744 | if (pl->combat_ob) |
751 | if (pl->combat_ob) |