Commit Graph

40 Commits

Author SHA1 Message Date
Sokomine
45336ed4d4 eliminated undeclared global variable o_id 2022-01-06 17:38:02 +01:00
Sokomine
48482ce23f wielded items can now be set using inventory slots 2021-07-26 01:25:29 +02:00
Sokomine
5fecab3ed7 implemented part of npc_gives/npc_wants item handling 2021-06-19 02:23:43 +02:00
Sokomine
9ed4cfc92d added yl_speak_up.execute_next_action and general action handling 2021-06-18 04:36:59 +02:00
Sokomine
5f652f62ae added save function for actions of type trade 2021-06-16 01:36:50 +02:00
Sokomine
a1ce1db375 preparations/formspecs for npc_wants/npc_gives 2021-06-14 01:12:12 +02:00
Sokomine
6588ef4cdb fix crash when deleting non-existant trade 2021-06-06 00:18:01 +02:00
Sokomine
e52d219204 added yl_speak_up.inventory_allow_item for formspec error messages instead of chat messages 2021-06-02 23:18:20 +02:00
Sokomine
7b12a37efe fixed deleting tades associated with dialog options 2021-06-02 18:05:40 +02:00
Sokomine
e6f9dbac67 made trade dialog more consistant for dialog option trades in edit mode or normal mode 2021-06-02 16:57:33 +02:00
Sokomine
33c79b4af0 added button back to trade list for dialog option trades 2021-06-02 03:54:30 +02:00
Sokomine
26fb546bf7 count trades properly so that the right target dialog can be choosen 2021-06-02 01:00:34 +02:00
Sokomine
786ca77c7f moved rest of minetest.show_formspec to yl_speak_up.show_fs 2021-05-31 22:34:01 +02:00
Sokomine
60d17124b6 moved edit_options_dialog to yl_speak_up.show_fs 2021-05-31 21:52:04 +02:00
Sokomine
cf145bb07d moved talk to yl_speak_up.show_fs 2021-05-31 21:41:09 +02:00
Sokomine
4095be4e43 added yl_speak_up.show_fs to combine almost all formspecs 2021-05-31 21:15:42 +02:00
Sokomine
caf72721b3 added yl_speak_up.show_fs_trade_list 2021-05-31 16:45:15 +02:00
Sokomine
bcf6a4062f added yl_speak_up.show_fs_add_trade_simple 2021-05-31 16:32:24 +02:00
Sokomine
cb7c2214b4 added yl_speak_up.show_fs_trade_simple 2021-05-31 16:26:12 +02:00
Sokomine
f772f6aa64 made edit button in trade in dialog options work again 2021-05-31 03:38:49 +02:00
Sokomine
cfd300ac5d fix crash 2021-05-30 21:21:43 +02:00
Sokomine
a6b7ff0d8e offer button back from trade to edit options 2021-05-30 20:59:58 +02:00
Sokomine
735553a937 always give items back when storing a trade; changed trade_id for trade list for better sorting; fixed bug with trade.trade_is_trade_list for storing temporal trade list 2021-05-30 19:14:48 +02:00
Sokomine
0c9d547401 added yl_speak_up.get_fs_add_trade_simple; trades are now always stored in dialog.trades instead of as results of options of dialogs 2021-05-30 01:43:46 +02:00
Sokomine
05a2384b20 save added and deleted trades in trade list to disk 2021-05-29 19:16:09 +02:00
Sokomine
4ab240df52 add trades again directly to the trade list 2021-05-29 19:06:35 +02:00
Sokomine
7fb42d95ab delete trades from trade_list even if not in edit mode 2021-05-29 18:02:57 +02:00
Sokomine
d75b94c99d added trade list 2021-05-29 03:55:36 +02:00
Sokomine
f3082b7637 show trade items above slot 2021-05-25 00:08:00 +02:00
Sokomine
c563603583 minor redesign of trade formspec 2021-05-24 23:59:52 +02:00
Sokomine
2e6ecf6006 added logging for succesful trades 2021-05-24 20:33:08 +02:00
Sokomine
878a5b6c23 renamed Finished trading button 2021-05-24 20:21:02 +02:00
Sokomine
ec23d8ac01 removed autofill/autorefill in pay slot 2021-05-24 20:18:20 +02:00
Sokomine
6f5a84e6de handle edit mode in trade_simple correctly 2021-05-23 23:24:21 +02:00
Sokomine
b1a6b6f628 call the right formspec on trade inventory actions 2021-05-23 23:15:02 +02:00
Sokomine
0ccbd774a1 handle fields.finished_trading 2021-05-23 21:39:16 +02:00
Sokomine
3c79ad9491 added yl_speak_up.input_do_trade_simple, store and delete of a trade and store information dialog 2021-05-23 21:10:18 +02:00
Sokomine
2e2ede2ebf added yl_speak_up.input_add_trade_simple 2021-05-23 01:44:01 +02:00
Sokomine
8f80fd5ade only undammaged items are acceptable for trading; the npc only takes undammaged items and those without metadata for his inventory 2021-05-22 21:34:37 +02:00
Sokomine
53496c7369 added formspecs for simple trade 2021-05-22 19:49:09 +02:00