mining floors and walls now respond to explosions. Large explosions cause a lot of lag tho!! badmins, you have been warned! Some mint related changes and temp graphics put up for the ore box and ore satchel. Not much else to say. A map update will come in a moment.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@835 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-01-12 19:10:57 +00:00
parent 4871b14ae0
commit 5af6ed1597
3 changed files with 107 additions and 15 deletions

View File

@@ -12,10 +12,7 @@
/area/mine/lobby
name = "Mining station"
requires_power = 0
luminosity = 1
icon_state = "mine"
sd_lighting = 0
/**********************Mineral deposits**************************/
@@ -32,6 +29,20 @@
var/spread = 0 //will the seam spread?
var/spreadChance = 0 //the percentual chance of an ore spreading to the neighbouring tiles
/turf/simulated/mineral/ex_act(severity)
switch(severity)
if(3.0)
return
if(2.0)
if (prob(70))
src.mineralAmt -= 1 //some of the stuff gets blown up
src.gets_drilled()
if(1.0)
src.mineralAmt -= 2 //some of the stuff gets blown up
src.gets_drilled()
return
/turf/simulated/mineral/New()
desc = "0"
if (mineralName && mineralAmt && spread && spreadChance)
@@ -263,6 +274,9 @@
spawn(2)
updateMineralOverlays()
/turf/simulated/floor/airless/asteroid/ex_act(severity)
return
/turf/simulated/floor/airless/asteroid/attackby(obj/item/weapon/W as obj, mob/user as mob)
if (!(istype(usr, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey")
usr << "\red You don't have the dexterity to do this!"
@@ -1211,6 +1225,11 @@
var/obj/machinery/mineral/output = null
var/amt_silver = 0 //amount of silver
var/amt_gold = 0 //amount of gold
var/amt_diamond = 0
var/amt_iron = 0
var/amt_plasma = 0
var/amt_uranium = 0
var/amt_clown = 0
var/newCoins = 0 //how many coins the machine made in it's last load
var/processing = 0
@@ -1228,12 +1247,28 @@
if (src.output && src.input)
var/obj/item/stack/sheet/O
O = locate(/obj/item/stack/sheet, input.loc)
if (istype(O,/obj/item/stack/sheet/gold))
amt_gold += 100
del(O)
if (istype(O,/obj/item/stack/sheet/silver))
amt_silver += 100
del(O)
if(O)
if (istype(O,/obj/item/stack/sheet/gold))
amt_gold += 100
del(O)
if (istype(O,/obj/item/stack/sheet/silver))
amt_silver += 100
del(O)
if (istype(O,/obj/item/stack/sheet/diamond))
amt_diamond += 100
del(O)
if (istype(O,/obj/item/stack/sheet/plasma))
amt_plasma += 100
del(O)
if (istype(O,/obj/item/weapon/ore/uranium))
amt_uranium += 100
del(O)
if (istype(O,/obj/item/stack/sheet/metal))
amt_iron += 100
del(O)
if (istype(O,/obj/item/stack/sheet/clown))
amt_clown += 100
del(O)
/obj/machinery/mineral/mint/attack_hand(user as mob)
@@ -1252,6 +1287,11 @@
dat += text("<br><br><font color='#ffcc00'><b>Gold inserterd: </b>[amt_gold]</font>")
dat += text("<br><br><font color='#888888'><b>Silver inserterd: </b>[amt_silver]</font>")
dat += text("<br><br><font color='#555555'><b>Iron inserterd: </b>[amt_iron]</font>")
dat += text("<br><br><font color='#8888FF'><b>Diamond inserterd: </b>[amt_diamond]</font>")
dat += text("<br><br><font color='#FF8800'><b>Plasma inserterd: </b>[amt_plasma]</font>")
dat += text("<br><br><font color='#008800'><b>Uranium inserterd: </b>[amt_uranium]</font>")
dat += text("<br><br><font color='#AAAA00'><b>Bananium inserterd: </b>[amt_clown]</font>")
dat += text("<br><br><A href='?src=\ref[src];makeCoins=[1]'>Make coins</A>")
dat += text("<br><br>found: <font color='green'><b>[newCoins]</b></font>")
@@ -1279,6 +1319,37 @@
newCoins++
src.updateUsrDialog()
sleep(5);
while(amt_diamond > 0)
new /obj/item/weapon/coin/diamond(output.loc)
amt_diamond -= 20
newCoins++
src.updateUsrDialog()
sleep(5);
while(amt_iron > 0)
new /obj/item/weapon/coin/iron(output.loc)
amt_iron -= 20
newCoins++
src.updateUsrDialog()
sleep(5);
while(amt_plasma > 0)
new /obj/item/weapon/coin/plasma(output.loc)
amt_plasma -= 20
newCoins++
src.updateUsrDialog()
sleep(5);
while(amt_uranium > 0)
new /obj/item/weapon/coin/uranium(output.loc)
amt_uranium -= 20
newCoins++
src.updateUsrDialog()
sleep(5);
while(amt_clown > 0)
new /obj/item/weapon/coin/clown(output.loc)
amt_clown -= 20
newCoins++
src.updateUsrDialog()
sleep(5);
processing = 0;
src.updateUsrDialog()
return
@@ -1308,6 +1379,26 @@
name = "Silver coin"
icon_state = "coin_silver"
/obj/item/weapon/coin/diamond
name = "Diamond coin"
icon_state = "coin_diamond"
/obj/item/weapon/coin/iron
name = "Iron coin"
icon_state = "coin_iron"
/obj/item/weapon/coin/plasma
name = "Solid plasma coin"
icon_state = "coin_plasma"
/obj/item/weapon/coin/uranium
name = "Uranium coin"
icon_state = "coin_uranium"
/obj/item/weapon/coin/clown
name = "Bananaium coin"
icon_state = "coin_clown"
/**********************Gas extractor**************************/
@@ -1512,6 +1603,7 @@
icon_state = "rail"
dir = 2
var/id = null //this is needed for switches to work Set to the same on the whole length of the track
anchored = 1
/**********************Rail intersection**************************/
@@ -2007,12 +2099,12 @@ for (var/client/C)
dat += text("<br><br><br><A href='?src=\ref[src];scrap=1'>Scrap current shuttle</A>")
else
dat += text("<b>Available ships to build:</b><br><br>")
dat += text("<A href='?src=\ref[src];ship=hopper'>Planet hopper</A> - Tiny, Slow<br>")
dat += text("<A href='?src=\ref[src];ship=bus'>Blunder Bus</A> - Small, Decent speed<br>")
dat += text("<A href='?src=\ref[src];ship=dinghy'>Space dinghy</A> - Medium size, Decent speed<br>")
dat += text("<A href='?src=\ref[src];ship=van'>Boxvan MMDLVIr</A> - Medium size, Decent speed<br>")
dat += text("<A href='?src=\ref[src];ship=secvan'>Boxvan MMDLVI - Security eidition</A> - Large, Rather slow<br>")
dat += text("<A href='?src=\ref[src];ship=station4'>Space station 4</A> - Huge, Slow<br>")
dat += text("<A href='?src=\ref[src];ship=hopper'>Planet hopper</A> - Tiny, Slow, 25000 metal<br>")
dat += text("<A href='?src=\ref[src];ship=bus'>Blunder Bus</A> - Small, Decent speed, 60000 metal<br>")
dat += text("<A href='?src=\ref[src];ship=dinghy'>Space dinghy</A> - Medium size, Decent speed, 100000 metal<br>")
dat += text("<A href='?src=\ref[src];ship=van'>Boxvan MMDLVIr</A> - Medium size, Decent speed, 120000 metal<br>")
dat += text("<A href='?src=\ref[src];ship=secvan'>Boxvan MMDLVI - Security eidition</A> - Large, Rather slow, 125000 metal<br>")
dat += text("<A href='?src=\ref[src];ship=station4'>Space station 4</A> - Huge, Slow, 250000 metal<br>")
user << browse("[dat]", "window=shipbuilder")