Skip to content

Commit 69fc2be

Browse files
committed
A bit of cleanup
1 parent 540bcc1 commit 69fc2be

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

plugins/createitem.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "df/creature_raw.h"
2424
#include "df/caste_raw.h"
2525
#include "df/reaction_reagent.h"
26-
#include "df/reaction_reagent_itemst.h"
2726
#include "df/reaction_product_itemst.h"
2827

2928
using namespace std;
@@ -50,11 +49,13 @@ DFhackCExport command_result plugin_init (color_ostream &out, std::vector<Plugin
5049
" PET, and EGG, replace this with a creature ID and caste.\n"
5150
" [count] - How many of the item you wish to create.\n"
5251
"\n"
53-
"By default, items are created at the feet of the selected unit.\n"
54-
"\n"
55-
"Syntax: createitem <destination>\n"
56-
" <destination> - Where to put subsequently created items.\n"
57-
" Valid values are 'floor', 'item', and 'building'.\n"
52+
"To use this command, you must select which unit will create the items.\n"
53+
"By default, items created will be placed at that unit's feet.\n"
54+
"To change this, type 'createitem <destination>'.\n"
55+
"Valid destinations:\n"
56+
"* floor - Place items on floor beneath maker's feet.\n"
57+
"* item - Place items inside selected container.\n"
58+
"* building - Place items inside selected building.\n"
5859
));
5960
return CR_OK;
6061
}
@@ -74,7 +75,6 @@ bool makeItem (df::reaction_product_itemst *prod, df::unit *unit, bool second_it
7475

7576
df::item *container = NULL;
7677
df::building *building = NULL;
77-
df::reaction_reagent_itemst *reagent = NULL;
7878
if (dest_container != -1)
7979
container = df::item::find(dest_container);
8080
if (dest_building != -1)

0 commit comments

Comments
 (0)