Sand can be placed on dirt
This commit is contained in:
parent
f54e980f06
commit
5e07e8f8de
1 changed files with 4 additions and 0 deletions
|
@ -598,6 +598,10 @@ s8 itemTileInteract(int tile, Item* item, int x, int y, int px, int py, int dir)
|
|||
else if(item->id == ITEM_WOOD){
|
||||
setTile(TILE_WOOD_WALL,x,y); --item->countLevel;
|
||||
return 1;
|
||||
}
|
||||
else if(item->id == ITEM_SAND){
|
||||
setTile(TILE_SAND,x,y); --item->countLevel;
|
||||
return 1;
|
||||
}
|
||||
else if(item->id == TOOL_SHOVEL && playerUseEnergy(4-item->countLevel)){
|
||||
addEntityToList(newItemEntity(newItem(ITEM_DIRT,1), (x<<4)+8, (y<<4)+8, currentLevel), &eManager);
|
||||
|
|
Loading…
Add table
Reference in a new issue