Skip to content

Commit

Permalink
Updated Dynamic Objects to version 8
Browse files Browse the repository at this point in the history
  • Loading branch information
tunesmith committed Feb 8, 2015
1 parent 491d363 commit 3b2f02b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jesse McGrew/Dynamic Objects.i7x
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version 7/130712 of Dynamic Objects (for Glulx only) by Jesse McGrew begins here.
Version 8/140515 of Dynamic Objects (for Glulx only) by Jesse McGrew begins here.

"Provides the ability to create new objects during game play."

Expand Down Expand Up @@ -234,7 +234,7 @@ Include (-
for ( i=LIST_OF_TY_GetLength(list): i>0: i-- )
handler(rel, RELS_ASSERT_TRUE, LIST_OF_TY_GetItem(list, i), obj);
}
BlkFree(list);
FlexFree(list);
}
} else if ((storage = rel-->RR_STORAGE) ~= 0) {
! static relation: we may need to resize the storage array (for V-to-V) or clear properties (for others, when not preserving)
Expand Down Expand Up @@ -301,7 +301,7 @@ Constant VTOVS_HDR_WORDS = 8;
if (~~nbmp) { print "*** No memory to resize V2V relation ***^"; rfalse; }
! point from the dynamic bitmap to the static bitmap
if (bitmap >= Blk_Heap) nbmp-->0 = bitmap-->(-1); else nbmp-->0 = bitmap;
if (bitmap >= Flex_Heap) nbmp-->0 = bitmap-->(-1); else nbmp-->0 = bitmap;
! point from the static bitmap to the dynamic bitmap
!(nbmp-->0)-->0 = -1;
Expand Down Expand Up @@ -344,7 +344,7 @@ Constant VTOVS_HDR_WORDS = 8;
}
! deallocate old bitmap if necessary
if (bitmap >= Blk_Heap) DT_Free(bitmap - WORDSIZE);
if (bitmap >= Flex_Heap) DT_Free(bitmap - WORDSIZE);
return nbmp;
];
Expand Down Expand Up @@ -499,6 +499,8 @@ Version 6 works with Inform 7 version 6G60.
Version 7 fixes another bug with relations and a bug that prevented the "new object cloned from" phrase from being used in certain contexts.
Version 8 works with (and requires) Inform 7 version 6L02.
Example: * The Cubbins Effect - Creating a new hat every time the player removes the one he's wearing.
*: "The Cubbins Effect" by Geodor Theisel
Expand Down

0 comments on commit 3b2f02b

Please sign in to comment.