mob
verb
UpdateBag()
var/items = 0
for(var/atom/O in src.contents) items++
winset(src,"Bag.Items", "cells=1x[items]")
items = 0
if(contents.len)
var/countList_[0]
for( var/atom/x in contents )
if( countList_[x.type] )
countList_[x.type][1] ++
else
countList_[x.type] = list( 1, x )
for( var/x in countList_)
//im stuck here
Problem description:
Hello. I would like to know how to make group atom together when i pick them up and view in the Bag. The bag is based on grid.
You will have to make Amount var for objects, too.
Also edit the drop/wear/buy verbs for amount