Opened 9 years ago

Closed 9 years ago

#1527 closed bug (invalid)

Fix gold from chests under no_selling

Reported by: magnate Owned by: magnate
Milestone: Triage Keywords: items


drop_gold() need to take a passed-in value, which can be p_ptr->depth for most cases but o_ptr->origin_depth for chests.

Change History (2)

comment:1 Changed 9 years ago by magnate

  • Owner set to magnate

comment:2 Changed 9 years ago by magnate

  • Milestone changed from 3.3.1 to Triage
  • Resolution set to invalid
  • Status changed from new to closed

Doh. It already does, and it's already used for chests, which set it to

value = o_ptr->origin_depth - 10 + 2 * o_ptr->sval

This means that all small wooden chests have the min value (i.e. 1), until dlev 10 (dl8 for large wooden chests). Both of those are after the no_selling gradient is finished (dl5), so this is another non-bug.

Note: See TracTickets for help on using tickets.