• R/O
  • SSH
  • HTTPS

xangband: Commit


Commit MetaInfo

Revision1904 (tree)
Time2013-03-21 01:02:25
Authoriks

Log Message

When wishing, get an object in inventory. If inventory is full, it appears at player's feet. If there is shallow lava or shallow water, it disappears with a message

Change Summary

Incremental Difference

--- TinyAngband/trunk/src/wizard2.c (revision 1903)
+++ TinyAngband/trunk/src/wizard2.c (revision 1904)
@@ -681,8 +681,18 @@
681681 q_ptr->art_flags3 |= TR3_IGNORE_FIRE;
682682 }
683683
684- /* Drop it */
685- (void)drop_near(q_ptr, -1, py, px);
684+ if (inven_carry_okay(q_ptr))
685+ {
686+ s16b slot = inven_carry(q_ptr);
687+ object_desc(o_name, q_ptr, OD_NAME_ONLY);
688+ msg_format("%c - %s", index_to_label(slot), o_name);
689+ }
690+ else
691+ {
692+ /* Drop it */
693+ msg_print(_("足元に何かが現れた!", "An object appears at your feet!"));
694+ (void)drop_near(q_ptr, 0, py, px);
695+ }
686696
687697 return (retval);
688698 }
Show on old repository browser