its like this
verb/Drop(var/N as num)
set src in usr
if (N > Amount)
usr << "You don't have that much [src]!"
return
if (N == Amount)
Move(usr.loc)
else
var/obj/Money/O = new src.type (usr.loc)
O.Amount = N
O.suffix = "([N])"
src.Amount -= N
src.suffix = "([Amount])"
N> Amount = if the gold amount u droped is bigger than amount u have.
if N==Amount , if the gold u droped is equal or lower than gold amount u droped it contuine the whole proccese thing.
var/obj/Money/O = new src.type (usr.loc) <--this create the gold ore on ground.
this is just crapy coding of game i use 2 work on lol.