mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
- Ported ISaidNo's artifact code. Will look into adding xenoarchaelogy [anomaly] base near RnD at some point.
- Modified dme. - Modified changelog. Signed-off-by: caelaislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
var/mineralAmtList = list("Uranium" = 5, "Iron" = 5, "Diamond" = 5, "Gold" = 5, "Silver" = 5, "Plasma" = 5/*, "Adamantine" = 5*/)
|
||||
var/mineralSpawnChanceList = list("Uranium" = 5, "Iron" = 50, "Diamond" = 1, "Gold" = 5, "Silver" = 5, "Plasma" = 25/*, "Adamantine" =5*/)//Currently, Adamantine won't spawn as it has no uses. -Durandan
|
||||
var/mineralChance = 10 //means 10% chance of this plot changing to a mineral deposit
|
||||
var/artifactChance = 1
|
||||
|
||||
/turf/simulated/mineral/random/New()
|
||||
..()
|
||||
@@ -98,6 +99,11 @@
|
||||
if(M)
|
||||
src = M
|
||||
M.levelupdate()
|
||||
|
||||
else if (prob(artifactChance))
|
||||
//spawn a rare, xeno-archaelogical artifact here
|
||||
new/obj/machinery/artifact(src)
|
||||
|
||||
return
|
||||
|
||||
/turf/simulated/mineral/random/high_chance
|
||||
|
||||
Reference in New Issue
Block a user