mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
comment adjustment according to feedback
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user