Commit c79307f5 authored by auraes's avatar auraes 💬
Browse files

Mise à jour Puny 016f090

parent 861a7b07
......@@ -63,6 +63,10 @@ Constant comma_word = 'comma,'; ! An "untypeable word" used to substitute
!Constant SOMETHING_STR = "quelque chose";
!Constant SOMEONE_STR = "quelqu'un";
#Ifndef DEFAULT_CAPACITY;
Constant DEFAULT_CAPACITY = 100;
#Endif;
#Ifndef OPTIONAL_NO_DARKNESS;
Attribute light;
#Endif;
......@@ -125,6 +129,7 @@ Property in_to; Property out_to;
#Ifndef OPTIONAL_FULL_DIRECTIONS;
! These have to come outside the other direction props if we DON'T HAVE full directions
Property ne_to;
Property nw_to;
Property se_to;
Property sw_to;
#EndIf;
......@@ -164,7 +169,7 @@ Property additive time_out $ffff;
Property daemon alias time_out;
Property additive each_turn $ffff;
Property capacity 100;
Property capacity alias nw_to;
Property short_name 0;
Property parse_name alias sw_to;
......
......@@ -279,7 +279,7 @@ System_file;
_j = wn;
_result = 0;
if(meta == 0 || parent(_obj) ~= 0
|| (_obj provides describe or life or found_in or capacity)
|| (_obj provides describe or life or found_in)
|| DebugParseNameObject(_obj))
_result = _obj.parse_name();
#IfNot;
......
......@@ -293,6 +293,12 @@ else
];
#EndIf;
[ ObjectCapacity p_obj;
if(p_obj provides capacity)
return RunRoutines(p_obj, capacity);
return DEFAULT_CAPACITY;
];
[ _AtFullCapacity p_s _obj _k;
if (p_s == player) {
objectloop (_obj in p_s)
......@@ -300,9 +306,9 @@ else
} else
_k = children(p_s);
#IfDef SACK_OBJECT;
if (_k < RunRoutines(p_s, capacity) || (p_s == player && _RoomInSack())) rfalse;
if (_k < ObjectCapacity(p_s) || (p_s == player && _RoomInSack())) rfalse;
#IfNot;
if (_k < RunRoutines(p_s, capacity)) rfalse;
if (_k < ObjectCapacity(p_s)) rfalse;
#EndIf;
];
......@@ -386,7 +392,7 @@ else
objectloop(_obj in p_obj) {
!print "Considering ", (object) _obj, "...^";
!if(_obj has concealed) print "Is concealed."; else print "Isnt concealed.";
_show_obj =
_show_obj =
_obj ~= parent(player) && ! don't print container when player in it
(p_check_workflag == false || _obj has workflag);
if(action ~= ##Inv) {
......
......@@ -358,7 +358,7 @@ v1.9: bug fix and new feature release (17 January 2021)
with strict error-checking.
=======
v1.10: bug fix and new feature release
v2.0: bug fix and new feature release
- Added OPTIONAL_SIMPLE_DOORS for an easier way to create doors, which also
saves space if you have more than six doors.
......@@ -366,4 +366,10 @@ v1.10: bug fix and new feature release
- Fixed something/someone response when second missing (issue 70)
- Changed to allow multiexpect to respond without filtering (issue 71)
- Changed to show concealed/scenery items in inventory lists (issue 72)
- Added new Game User's Guide
- Fixed creature testing bug (issue 73)
- Changed so the capacity property is an alias of nw_to, to save a common
property. This leads to capacity not having a proper default value. To read
the capacity property, call ObjectCapacity(object). The default value is the
value of the constant DEFAULT_CAPACITY, which is 100 unless the game code
defines it.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment