From: <jo...@us...> - 2006-06-07 20:31:32
|
Revision: 24489 Author: jorrit Date: 2006-06-07 02:43:38 -0700 (Wed, 07 Jun 2006) ViewCVS: http://svn.sourceforge.net/crystal/?rev=24489&view=rev Log Message: ----------- - Jorrit changed the inventory system so that when you return 2 from cc_use the object will be removed from the inventory but not destroyed. Modified Paths: -------------- crystalcore/trunk/data/menus/gamemenu.xml crystalcore/trunk/docs/history.txt Modified: crystalcore/trunk/data/menus/gamemenu.xml =================================================================== --- crystalcore/trunk/data/menus/gamemenu.xml 2006-06-07 09:10:34 UTC (rev 24488) +++ crystalcore/trunk/data/menus/gamemenu.xml 2006-06-07 09:43:38 UTC (rev 24489) @@ -509,15 +509,15 @@ <if eval="#rc==-1"> <expr eval="hud_msg::cc_showerror(msg='You cannot use '+entname(?inv_selected)+' here!',time=0)" /> </if> - <if eval="#rc==1"> - <print value="'Removing item '+?inv_selected" /> - + <if eval="#rc>=1"> <!-- Remove item from inventory and select a new item --> <lvar name="dropent" value="?inv_selected" /> <inventory propclass="pc(ent_player,pcinventory)" /> <inventory_rem child="#dropent" /> <call event="cc_inventorychange" /> - <destroyentity name="#dropent" /> + <if eval="#rc==1"> + <destroyentity name="#dropent" /> + </if> </if> </event> Modified: crystalcore/trunk/docs/history.txt =================================================================== --- crystalcore/trunk/docs/history.txt 2006-06-07 09:10:34 UTC (rev 24488) +++ crystalcore/trunk/docs/history.txt 2006-06-07 09:43:38 UTC (rev 24489) @@ -6,6 +6,9 @@ 7-Jun-2006 - Jorrit made the default message and default error timeout configurable in crystalcore.cfg. + - Jorrit changed the inventory system so that when you + return 2 from cc_use the object will be removed from the + inventory but not destroyed. 6-Jun-2006 - Jorrit added ambient sound to the outdoor level. 5-Jun-2006 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |