Use encumbrance prefix in pickup_object when above burdened also
This commit is contained in:
+7
-2
@@ -1716,6 +1716,7 @@ pickup_object(
|
|||||||
boolean telekinesis) /* not picking it up directly by hand */
|
boolean telekinesis) /* not picking it up directly by hand */
|
||||||
{
|
{
|
||||||
int res, nearload;
|
int res, nearload;
|
||||||
|
const char* prefix;
|
||||||
|
|
||||||
if (obj->quan < count) {
|
if (obj->quan < count) {
|
||||||
impossible("pickup_object: count %ld > quan %ld?", count, obj->quan);
|
impossible("pickup_object: count %ld > quan %ld?", count, obj->quan);
|
||||||
@@ -1785,8 +1786,12 @@ pickup_object(
|
|||||||
if (uwep && uwep == obj)
|
if (uwep && uwep == obj)
|
||||||
gm.mrg_to_wielded = TRUE;
|
gm.mrg_to_wielded = TRUE;
|
||||||
nearload = near_capacity();
|
nearload = near_capacity();
|
||||||
prinv(nearload == SLT_ENCUMBER ? moderateloadmsg : (char *) 0, obj,
|
prefix = (nearload >= EXT_ENCUMBER) ? overloadmsg
|
||||||
count);
|
: (nearload >= HVY_ENCUMBER) ? nearloadmsg
|
||||||
|
: (nearload >= MOD_ENCUMBER) ? moderateloadmsg
|
||||||
|
: (nearload >= SLT_ENCUMBER) ? slightloadmsg
|
||||||
|
: (char *) 0;
|
||||||
|
prinv(prefix, obj, count);
|
||||||
gm.mrg_to_wielded = FALSE;
|
gm.mrg_to_wielded = FALSE;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user