mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
reduced the chance of safely extracting xenoarch finds without the proper process
Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -344,14 +344,13 @@ commented out in r5061, I left it because of the shroom thingies
|
|||||||
|
|
||||||
user << "\red You start [P.drill_verb][fail_message ? fail_message : ""]."
|
user << "\red You start [P.drill_verb][fail_message ? fail_message : ""]."
|
||||||
|
|
||||||
if(fail_message)
|
if(fail_message && prob(90))
|
||||||
if(prob(50))
|
if(prob(25))
|
||||||
if(prob(25))
|
excavate_find(5, src.finds[1])
|
||||||
excavate_find(5, src.finds[1])
|
else if(prob(50))
|
||||||
else if(prob(50))
|
src.finds.Remove(src.finds[1])
|
||||||
src.finds.Remove(src.finds[1])
|
if(prob(50))
|
||||||
if(prob(50))
|
artifact_debris()
|
||||||
artifact_debris()
|
|
||||||
|
|
||||||
if(do_after(user,P.digspeed))
|
if(do_after(user,P.digspeed))
|
||||||
user << "\blue You finish [P.drill_verb] the rock."
|
user << "\blue You finish [P.drill_verb] the rock."
|
||||||
@@ -425,8 +424,6 @@ commented out in r5061, I left it because of the shroom thingies
|
|||||||
//extract pesky minerals while we're excavating
|
//extract pesky minerals while we're excavating
|
||||||
while(excavation_minerals.len && src.excavation_level > excavation_minerals[excavation_minerals.len])
|
while(excavation_minerals.len && src.excavation_level > excavation_minerals[excavation_minerals.len])
|
||||||
drop_mineral()
|
drop_mineral()
|
||||||
//have a 50% chance to extract bonus minerals this way
|
|
||||||
//if(prob(50))
|
|
||||||
pop(excavation_minerals)
|
pop(excavation_minerals)
|
||||||
mineralAmt--
|
mineralAmt--
|
||||||
|
|
||||||
@@ -456,13 +453,6 @@ commented out in r5061, I left it because of the shroom thingies
|
|||||||
O = new /obj/item/weapon/ore/plasma(src)
|
O = new /obj/item/weapon/ore/plasma(src)
|
||||||
if (src.mineralName == "Diamond")
|
if (src.mineralName == "Diamond")
|
||||||
O = new /obj/item/weapon/ore/diamond(src)
|
O = new /obj/item/weapon/ore/diamond(src)
|
||||||
/*if (src.mineralName == "Archaeo")
|
|
||||||
//new /obj/item/weapon/archaeological_find(src)
|
|
||||||
//if(prob(10) || delicate)
|
|
||||||
if(prob(50)) //Don't have delicate tools (hand pick/excavation tool) yet, temporarily change to 50% instead of 10% -Mij
|
|
||||||
O = new /obj/item/weapon/ore/strangerock(src)
|
|
||||||
else
|
|
||||||
destroyed = 1*/
|
|
||||||
if (src.mineralName == "Clown")
|
if (src.mineralName == "Clown")
|
||||||
O = new /obj/item/weapon/ore/clown(src)
|
O = new /obj/item/weapon/ore/clown(src)
|
||||||
if(O)
|
if(O)
|
||||||
@@ -496,14 +486,9 @@ commented out in r5061, I left it because of the shroom thingies
|
|||||||
M.Stun(5)
|
M.Stun(5)
|
||||||
M.apply_effect(25, IRRADIATE)
|
M.apply_effect(25, IRRADIATE)
|
||||||
|
|
||||||
/*if (prob(src.artifactChance))
|
|
||||||
//spawn a rare artifact here
|
|
||||||
new /obj/machinery/artifact(src)*/
|
|
||||||
var/turf/simulated/floor/plating/airless/asteroid/N = ChangeTurf(/turf/simulated/floor/plating/airless/asteroid)
|
var/turf/simulated/floor/plating/airless/asteroid/N = ChangeTurf(/turf/simulated/floor/plating/airless/asteroid)
|
||||||
N.fullUpdateMineralOverlays()
|
N.fullUpdateMineralOverlays()
|
||||||
|
|
||||||
/*if(destroyed) //Display message about being a terrible miner
|
|
||||||
usr << "\red You destroy some of the rocks!"*/
|
|
||||||
return
|
return
|
||||||
|
|
||||||
/turf/simulated/mineral/proc/excavate_find(var/prob_clean = 0, var/datum/find/F)
|
/turf/simulated/mineral/proc/excavate_find(var/prob_clean = 0, var/datum/find/F)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
var/view_range = 20 //how close excavation has to come to show an overlay on the turf
|
var/view_range = 20 //how close excavation has to come to show an overlay on the turf
|
||||||
var/clearance_range = 3 //how close excavation has to come to extract the item
|
var/clearance_range = 3 //how close excavation has to come to extract the item
|
||||||
//if excavation hits var/excavation_required exactly, it's contained find is extracted cleanly without the ore
|
//if excavation hits var/excavation_required exactly, it's contained find is extracted cleanly without the ore
|
||||||
var/prob_delicate = 75 //probability it requires an active suspension field to not insta-crumble
|
var/prob_delicate = 90 //probability it requires an active suspension field to not insta-crumble
|
||||||
var/dissonance_spread = 1 //proportion of the tile that is affected by this find
|
var/dissonance_spread = 1 //proportion of the tile that is affected by this find
|
||||||
//used in conjunction with analysis machines to determine correct suspension field type
|
//used in conjunction with analysis machines to determine correct suspension field type
|
||||||
|
|
||||||
@@ -276,6 +276,7 @@
|
|||||||
if(19)
|
if(19)
|
||||||
apply_prefix = 0
|
apply_prefix = 0
|
||||||
new_item = new /obj/item/weapon/claymore(src.loc)
|
new_item = new /obj/item/weapon/claymore(src.loc)
|
||||||
|
new_item.force = 10
|
||||||
item_type = new_item.name
|
item_type = new_item.name
|
||||||
if(20)
|
if(20)
|
||||||
//arcane clothing
|
//arcane clothing
|
||||||
@@ -318,6 +319,7 @@
|
|||||||
if(25)
|
if(25)
|
||||||
apply_prefix = 0
|
apply_prefix = 0
|
||||||
new_item = new /obj/item/weapon/katana(src.loc)
|
new_item = new /obj/item/weapon/katana(src.loc)
|
||||||
|
new_item.force = 10
|
||||||
item_type = new_item.name
|
item_type = new_item.name
|
||||||
if(26)
|
if(26)
|
||||||
//energy gun
|
//energy gun
|
||||||
|
|||||||
Reference in New Issue
Block a user