This repository was archived by the owner on May 22, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 456
Lavaland Mining Rework #1: What do you mean I have to mine?? #13185
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
9f89217
mining ayyy
ToasterBiome 0e4efbb
default power is 1 + fix plasma cutter
ToasterBiome 37d90c0
mining charges + hardness changes + lightens icon
ToasterBiome d5d4078
admins
ToasterBiome 4e521e4
Update minerals.dm
ToasterBiome 05aa605
Update minerals.dm
ToasterBiome b42ece4
Update minerals.dm
ToasterBiome c427698
Update mining_charges.dm
ToasterBiome bb3cf62
Update minerals.dm
ToasterBiome 1046543
upgrades
ToasterBiome d4a2fcf
fixes bugs
ToasterBiome 36d3076
Update world_anvil.dm
ToasterBiome 9e99453
ow
ToasterBiome 8eb5814
Update code/modules/mining/lavaland/world_anvil.dm
ToasterBiome cdfe35e
Update code/modules/mining/lavaland/world_anvil.dm
ToasterBiome 86a319e
Update code/modules/mining/lavaland/world_anvil.dm
ToasterBiome a66f18d
Update code/modules/mining/lavaland/world_anvil.dm
ToasterBiome d3dd91b
Update code/modules/mining/lavaland/world_anvil.dm
ToasterBiome 9d4db17
Update code/modules/mining/equipment/mining_charges.dm
ToasterBiome 14f8a30
fixes stuff
ToasterBiome 45b7c42
Update code/modules/mining/lavaland/world_anvil.dm
ToasterBiome c77d7a3
bad cowbot
ToasterBiome a345f29
fixingg buggsss
ToasterBiome 2b37ef2
Update kinetic_accelerator.dm
ToasterBiome 46d2dbc
new spritz
ToasterBiome e75eaa4
no free c4
ToasterBiome ae8a5bb
Update energy.dmi
ToasterBiome 397a810
Update mining_charges.dm
ToasterBiome 778c5d8
Merge branch 'master' into hardrockhotel
ToasterBiome 2466a77
Update resonator.dm
ToasterBiome 4feaf03
Update resonator.dm
ToasterBiome e1a64dc
inhands
ToasterBiome c8eb06d
adv plasmacutter inhand sure
ToasterBiome 2b75935
Update world_anvil.dm
ToasterBiome 82e4ec9
no ghosts
ToasterBiome fce0440
Update minerals.dm
ToasterBiome 1f2366e
yeah this is probably fine
ToasterBiome 4e1ac8a
Update mining_charges.dm
ToasterBiome 15cb19f
Update mining_charges.dm
ToasterBiome 8c19977
Update mining_charges.dm
ToasterBiome ebf3e66
Update mining_charges.dm
ToasterBiome af5efd6
Update world_anvil.dm
ToasterBiome 065c044
Merge branch 'hardrockhotel' of https://github.com/ToasterBiome/Yogst…
ToasterBiome File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| /obj/item/grenade/plastic/miningcharge | ||
| name = "mining charge" | ||
| desc = "Used to make big holes in rocks. Only works on rocks!" | ||
| icon_state = "mining-charge" | ||
| det_time = 5 //uses real world seconds cause screw you i guess | ||
| boom_sizes = list(1,3,5) | ||
| alert_admins = FALSE | ||
|
|
||
| /obj/item/grenade/plastic/miningcharge/Initialize() | ||
| . = ..() | ||
| plastic_overlay = mutable_appearance(icon, "[icon_state]_active", ON_EDGED_TURF_LAYER) | ||
|
|
||
| /obj/item/grenade/plastic/miningcharge/attack_self(mob/user) | ||
| if(nadeassembly) | ||
| nadeassembly.attack_self(user) | ||
|
|
||
| /obj/item/grenade/plastic/miningcharge/afterattack(atom/movable/AM, mob/user, flag, notify_ghosts = FALSE) | ||
| if(ismineralturf(AM)) | ||
| ..() | ||
| else | ||
| to_chat(user,span_warning("The charge only works on rocks!")) | ||
|
|
||
| /obj/item/grenade/plastic/miningcharge/prime() | ||
| var/turf/closed/mineral/location = get_turf(target) | ||
| location.attempt_drill(null,TRUE,3) //orange says it doesnt include the actual middle | ||
| for(var/turf/closed/mineral/rock in circlerangeturfs(location,boom_sizes[3])) | ||
| var/distance = get_dist_euclidian(location,rock) | ||
| if(distance <= boom_sizes[1]) | ||
| rock.attempt_drill(null,TRUE,3) | ||
| else if (distance <= boom_sizes[2]) | ||
| rock.attempt_drill(null,TRUE,2) | ||
| else if (distance <= boom_sizes[3]) | ||
| rock.attempt_drill(null,TRUE,1) | ||
| for(var/mob/living/carbon/C in circlerange(location,boom_sizes[3])) | ||
| if(ishuman(C) && C.soundbang_act(1, 0)) | ||
| to_chat(C, span_warning("<font size='2'><b>You are knocked down by the power of the mining charge!</font></b>")) | ||
| var/distance = get_dist_euclidian(location,C) | ||
| C.Knockdown((boom_sizes[3] - distance) * 1 SECONDS) //1 second for how close you are to center if you're in range | ||
| C.adjustEarDamage(0, (boom_sizes[3] - distance) * 5) //5 ear damage for every tile you're closer to the center | ||
| qdel(src) | ||
|
|
||
|
|
||
| /obj/item/grenade/plastic/miningcharge/deconstruct(disassembled = TRUE) //no gibbing a miner with pda bombs | ||
| if(!QDELETED(src)) | ||
| qdel(src) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.