Commit Graph

30 Commits (b6c97214ca97586728261e8bdcf9b28dd9de6d46)

Author SHA1 Message Date
myk002 19a4905933
update docs for "c" plugins 2022-07-22 16:42:36 -07:00
lethosor e7754ea890
Enable -Wunused-variable and fix most errors 2021-09-07 01:16:21 -04:00
lethosor c9609ad590
Make `createitem inspect` consistent for PLANT_GROWTH items 2020-10-09 12:45:49 -04:00
Quietust d3520a2f5f Fix createitem to properly create plant growths (#898) 2020-09-20 16:11:41 -06:00
lethosor 9c37a3a068
Add "createitem inspect" subcommand 2020-09-19 20:33:47 -04:00
Quietust e2301ecae7 Update structures, fix reaction_productst::produce() parms 2020-06-23 13:31:27 -06:00
lethosor 5190257864 createitem: Improve error handling when no caste is specified
Extension of #1463
2019-11-01 23:46:42 -04:00
jimcarreer cffc30b433
Output Castes on Error 2019-10-06 14:25:33 -04:00
Ben Lubar a7dfacd1c5
Fix warnings in supported plugins. 2018-04-06 01:25:21 -05:00
Quietust bbd823f5b0 Simplify logic in createitem, to avoid similar errors in the future 2017-12-16 15:40:39 -06:00
lethosor b1e77fa260 createitem: fix an issue with items teleporting to the location of another unit
This was due to moveToGround() being called twice, first with the location of
world.units.active[0], which caused the item to teleport to that location later.

Fixes #1198
2017-12-16 16:09:43 -05:00
Michael Casadevall a03b32846a Modify DFHack to handle new produce() prototype. Major thanks to lethosor, and ragundo for their help in this
Signed-off-by: Michael Casadevall <mcasadevall@ubuntu.com>
2016-06-13 16:57:45 -04:00
lethosor 74898a5424 createitem: move all created items to cursor if applicable 2016-05-11 17:54:37 -04:00
lethosor 33472b823b createitem: fall back to units.active[0] if a cursor is available but no unit 2016-04-05 11:49:38 -04:00
lethosor c9eab65c96 Fix more produce() calls 2015-12-22 09:54:00 -05:00
lethosor 55d5706a21 Update structures and fix various issues with plugins producing items
reaction_product::produce() takes a new unidentified vector<void*>*.
Passing a reference to an empty vector appears to work.
2015-12-18 18:40:11 -05:00
lethosor 0c5b5c691a Use gametype checks in plugins 2015-03-09 20:17:18 -04:00
lethosor 10cfef0553 Fix whitespace issues 2015-02-14 22:53:06 -05:00
lethosor cac2245438 Update some plugins to use REQUIRE_GLOBAL 2014-12-03 23:26:54 -05:00
Quietust e483e7439f Fix problems with NONE for item types and subtypes 2014-05-22 08:18:01 -05:00
Alexander Gavrilov 827dd121d8 Make createitem default to the controlled unit in adventure mode. 2014-03-24 19:35:34 +04:00
Quietust 91a7280ac3 Need to include tool_uses.h 2014-01-03 16:42:24 -06:00
Quietust 69fc2bec6d A bit of cleanup 2013-12-27 13:01:34 -06:00
Quietust 540bcc1f46 Enhance createitem, can now place items into containers or buildings 2013-12-27 12:53:33 -06:00
Quietust 463bb8d498 Update plugins to use CR_WRONG_USAGE where appropriate 2013-10-30 15:58:14 -05:00
Quietust 399fd107e4 Make createitem create shoes in pairs (as well as gloves) 2013-04-08 08:29:50 -05:00
Quietust 2b675c80ce Fix createitem to not leak memory 2013-03-14 12:00:16 -05:00
Quietust b07f2fc33f Get entity from unit->civ_id instead of from ui (so it works in advmode), and only get site in fortress mode 2013-02-28 10:00:00 -06:00
Quietust 9bd999ebc1 Update createitem to allow specifying quantity, also allow it to auto-detect whether it needs to create extra gloves and assign handedness 2013-02-28 09:23:48 -06:00
Quietust f55030909f Add createItem plugin, spawns an item at the selected unit's feet 2013-02-27 11:09:06 -06:00