Changeset 446
- Timestamp:
- 08/05/07 03:36:27 (1 year ago)
- Files:
-
- trunk/src/cmd2.c (modified) (4 diffs)
- trunk/src/object2.c (modified) (1 diff)
- trunk/src/wizard2.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cmd2.c
r445 r446 182 182 static void chest_death(int y, int x, s16b o_idx) 183 183 { 184 int number ;184 int number, value; 185 185 186 186 bool tiny; … … 207 207 opening_chest = TRUE; 208 208 209 /* Determine the "value" of the items */ 210 value = ABS(o_ptr->pval) + 10; 211 209 212 /* Drop some objects (non-chests) */ 210 213 for (; number > 0; --number) … … 220 223 { 221 224 /* Make some gold */ 222 if (!make_gold(i_ptr, o_ptr->origin_depth)) continue;225 if (!make_gold(i_ptr, value)) continue; 223 226 } 224 227 … … 227 230 { 228 231 /* Make an object */ 229 if (!make_object(i_ptr, o_ptr->origin_depth, FALSE, FALSE)) continue;232 if (!make_object(i_ptr, value, FALSE, FALSE)) continue; 230 233 } 231 234 trunk/src/object2.c
r444 r446 2449 2449 if (o_ptr->pval > 55) o_ptr->pval = (s16b)(55 + rand_int(5)); 2450 2450 2451 /* The contents of a chest are based on its level of origin */2452 o_ptr->origin_depth = level;2453 2454 2451 break; 2455 2452 } trunk/src/wizard2.c
r443 r446 1031 1031 apply_magic(i_ptr, p_ptr->depth, FALSE, FALSE, FALSE); 1032 1032 1033 /* Mark as cheat */1033 /* Mark as cheat, and where created */ 1034 1034 i_ptr->origin = ORIGIN_CHEAT; 1035 i_ptr->origin_depth = p_ptr->depth; 1035 1036 1036 1037 if (k_info[k_idx].tval == TV_GOLD)
