Created
April 11, 2012 17:55
-
-
Save warmist/2360931 to your computer and use it in GitHub Desktop.
Pot A Creature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function putInItem(item,unit) | |
local u_ref=df.general_ref_contains_unitst:new() | |
u_ref.unit_id=unit.id | |
item.itemrefs:insert(#item.itemrefs,u_ref) | |
local u_cr_ref=df.general_ref_contained_in_itemst:new() | |
unit.flags1.caged=true | |
u_cr_ref.item_id=item.id | |
unit.refs:insert(#unit.refs,u_cr_ref) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment