Py_INCREF( Py_None ); return Py_None;
Py_RETURN_NONE;
static PyObject* wpItem_additem( wpItem* self, PyObject* args ){	if ( !self->pItem || self->pItem->free )		return PyFalse();	if ( !checkArgItem( 0 ) )	{		PyErr_BadArgument();		return 0;	}	P_ITEM pItem = getArgItem( 0 );	// Secondary Parameters	bool randomPos = true;	bool handleWeight = true;	bool autoStack = true;	if ( checkArgInt( 1 ) )		randomPos = getArgInt( 1 ) != 0;	if ( checkArgInt( 2 ) )		handleWeight = getArgInt( 2 ) != 0;	if ( checkArgInt( 3 ) )		autoStack = getArgInt( 3 ) != 0;	// Special rules:	// If randomPos == false but autoStack == true then manually set a random position as well	// If randomPos == true but autoStack = false then manually set the random position	if ( randomPos && !autoStack )	{		self->pItem->addItem( pItem, false, handleWeight );		pItem->SetRandPosInCont( self->pItem );	}	else if ( !randomPos && autoStack )	{		Coord_cl pos = pItem->pos();		self->pItem->addItem( pItem, true, handleWeight );		if ( !pItem->free )			pItem->moveTo( pos );	}	else	{		self->pItem->addItem( pItem, randomPos, handleWeight );	}	Py_INCREF( Py_None );	return Py_None;}