comment adjustment according to feedback

This commit is contained in:
Walter0o
2014-08-15 06:19:55 +02:00
parent 7236995b0e
commit de37978995

View File

@@ -82,16 +82,15 @@
if(wrapped) //Already have an item. if(wrapped) //Already have an item.
// temporary put the item into user so attackby checks pass //Temporary put wrapped into user so target's attackby() checks pass.
wrapped.loc = user wrapped.loc = user
//Pass the attack on to the target. this might delete/relocate wrapped //Pass the attack on to the target. This might delete/relocate wrapped.
target.attackby(wrapped,user) target.attackby(wrapped,user)
// if the item did not get put into target or deleted, put it back into src //If wrapped did neither get deleted nor put into target, put it back into the gripper.
if(wrapped && user && (wrapped.loc == user)) if(wrapped && user && (wrapped.loc == user))
wrapped.loc = src wrapped.loc = src
else else
wrapped = null wrapped = null
return return