world
New()
..()
Gatherbuilds()
obj/var
builtobjects
var
list
buildables
buildselect
proc
Gatherbuilds()
buildables = new
for(var/x in typesof(/obj/buildable)-/obj/buildable)
buildables += new x
obj/buildable
var
index=""
owner
Click()
var/player/p=usr
builtobjects+=1
if(p.buildon==1)
if(p.building==0)
p.building=1
for(var/obj/buildable/B in buildables)
buildselect+=B
p<<"You've selected [B]."
B.loc=locate(p.x,p.y,p.z)
else
p.building=0
alert(p,"Would you like to build on this land for [p.buildamount]?","","Yes","No")
if("Yes")
if(p.zenni<=p.buildamount)
p.zenni-=p.buildamount
p.buildamount=0
else
alert("Not enough money!")
if("No")
for(var/obj/buildable/B in view())
del(B)
else
p<<"Building not toggled!"
return
//else
// alert("Not enough zenni!")
First_Ash
icon='Ash1.dmi'
Second_Ash
icon='Ash2.dmi'
Third_Ash
icon='Ash3.dmi'
Fourth_Ash
icon='Ash4.dmi'
Fifth_Ash
icon='Ash5.dmi'
Brick_WallOne
icon='BrickWall1.dmi'
Brick_WallTwo
icon='BrickWall2.dmi'
Brick_WallThree
icon='BrickWall3.dmi'
Brick_WallFourth
icon='BrickWall4.dmi'
Brick_WallFifth
icon='BrickWall5.dmi'
Brick_WallSix
icon='BrickWall6.dmi'
Brick_WallSeven
icon='BrickWall7.dmi'
Brick_WallEight
icon='BrickWall8.dmi'
Problem description:
runtime error: type mismatch: First Ash (/obj/buildable/First_Ash) += First Ash (/obj/buildable/First_Ash)
proc name: Click (/obj/buildable/Click)
source file: Buildables.dm,36
usr: Moise (/player)
src: First Ash (/obj/buildable/First_Ash)
call stack:
First Ash (/obj/buildable/First_Ash): Click("Building", "default.info1", "icon-x=84;icon-y=23;left=1")
I get this via Clicking an obj in my Building Tab, been trying to find out what's wrong, anyone else can help figure this out?