- if (mode_name == 'command_thing' && (!game.player.carrying
- || !game.player.carrying.commandable)) {
- return fail('not carrying anything commandable', 'play');
- };
- if (mode_name == 'take_thing' && game.player.carrying) {
- return fail('already carrying something', 'play');
- };
- if (mode_name == 'drop_thing' && !game.player.carrying) {
- return fail('not carrying anything droppable', 'play');
+ if (mode_name == 'command_thing' && (!game.player.carrying
+ || !game.player.carrying.commandable)) {
+ return fail('not carrying anything commandable');
+ } else if (mode_name == 'name_thing' && !game.player.carrying) {
+ return fail('not carrying anything to re-name');
+ } else if (mode_name == 'admin_thing_protect' && !game.player.carrying) {
+ return fail('not carrying anything to protect')
+ } else if (mode_name == 'take_thing' && game.player.carrying) {
+ return fail('already carrying something');
+ } else if (mode_name == 'drop_thing' && !game.player.carrying) {
+ return fail('not carrying anything droppable');
+ } else if (mode_name == 'enter_hat' && !game.player.hat) {
+ return fail('not wearing hat to edit', 'edit');