Properly use settings to decide whether to pick up useless or inedible stuff rather than forcing autopickup to be forbidden.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6554 c06c8d41-db1a-0410-9941-cceddc491573
NQ5MZTGKHPSXGP6F7BIEFPGDN2CVBYOREAWOKRQOCXK2PCQYJWGQC Q5YUZONIIPGRWOIQNL6DHRGLKF4V3K5XSZCBH2SL7DP4WPLDNOSQC 25EF5X4H3LURXFZ35ZGYGUB6ND7NFQVH4M2XX2SI33I4XRGYG5HAC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC GYRKOLZFYXWJTPEV35USSHCJNA6Y4XMDHSTEZWEBM57WQP2PT6UQC QCUMH3C7GXV7ZW444WT5SFAXQOJKJSE2YCQCEHMRYXCWF4QI7UMAC QGUV5IINCOK6AXWQ2QTZMPDJTEZPON5O565ANT2EE236I5OAPAVAC 4GYZYBY7FFORRNPIEFTV4ZM2C7Z6D2KTQOM537ZCC2YBXT2TNSHAC SSCG2FLJMUTTIRXBFSPLAUUBUIN375ZGL5UOAF3SC62ZIILSMMKAC TDAVD56MGLFSMJLPLSYLEVW7MBRMT7V5BNII4TRWVDIHH47CD2OAC /*Rather than prompting for each individual item, I think it should belike multi-pickup, in that pressing a letter only "selects" an item(changing the '-' next to its name to a '+').New, suggested shopping keys:* letter keys [a-t] (de)select item* Enter buys (with prompt)* ? toggles examination mode (where letter keys view items)* \ shows discovered items* * lists inventory* x exits (also Esc)For the ? key, the text should read:[?] switch to examination mode[?] switch to selection modeDisplay selected items in yellow.Use red/green letters to indicated availability as now. Update these asitems are (de)selected.List funds: "You now have 119 gold pieces. After the purchase, you willhave 24 gold pieces."*/
// Rather than prompting for each individual item, shopping now works more// like multi-pickup, in that pressing a letter only "selects" an item// (changing the '-' next to its name to a '+'). Affordability is shown// via colours that are updated every time the contents of your shopping// cart change.//// New, suggested shopping keys:// * letter keys [a-t] (de)select item, as now// * Enter buys (with prompt), as now// * \ shows discovered items, as now// * x exits (also Esc), as now// --------// * ? toggles examination mode (where letter keys view items)// * * lists inventory (currently also ?)//// For the ? key, the text should read:// [?] switch to examination mode// [?] switch to selection mode
item_def &item = you.inv[freeslot];item.link = freeslot;item.slot = index_to_letter(item.link);item.base_type = OBJ_POTIONS;item.sub_type = POT_BLOOD_COAGULATED;item.quantity = coag_count;item.x = -1;item.y = -1;item.plus = 0;item.plus2 = 0;item.special = 0;item.flags = 0;
item_def &item = you.inv[freeslot];item.link = freeslot;item.slot = index_to_letter(item.link);item.base_type = OBJ_POTIONS;item.sub_type = POT_BLOOD_COAGULATED;item.quantity = coag_count;item.x = -1;item.y = -1;item.plus = 0;item.plus2 = 0;item.special = 0;item.flags = 0;item.inscription = "";
# Useless itemsmenu = darkgrey:.*useless_item.*: if you.race() == "Spriggan" thenmenu = darkgrey:.*jewellery.*(sustenance)ae = >ring.*(sustenance):end