-
-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ed1661
commit 5d9cc9c
Showing
9 changed files
with
80 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,62 @@ | ||
/obj/effect/landmark/mission_poi/drill | ||
|
||
/datum/mission/dynamic/drill | ||
name = "drill mission" | ||
desc = "get this drill back up and running and send us proof" | ||
setpiece_item = /obj/item/drill_readout | ||
var/drill_type = /obj/machinery/drill/mission/ruin | ||
/// What signal will spawn the required item | ||
var/mission_main_signal = COMSIG_DRILL_SAMPLES_DONE | ||
|
||
/datum/mission/dynamic/drill/spawn_main_piece(obj/effect/landmark/mission_poi/mission_poi) | ||
var/drill_obj = set_bound(mission_poi.use_poi(drill_type), null, FALSE, TRUE) | ||
RegisterSignal(drill_obj, mission_main_signal, PROC_REF(on_drill_done)) | ||
|
||
/datum/mission/dynamic/drill/proc/on_drill_done(obj/machinery/drill/drill_obj) | ||
SIGNAL_HANDLER | ||
|
||
required_item = new setpiece_item(drill_obj.loc) | ||
set_bound(required_item, null, FALSE, TRUE) | ||
UnregisterSignal(drill_obj, mission_main_signal) | ||
remove_bound(drill_obj) | ||
|
||
/* | ||
Core sampling drill | ||
*/ | ||
|
||
/obj/machinery/drill/mission | ||
name = "core sampling research drill" | ||
desc = "A specialized laser drill designed to extract geological samples." | ||
|
||
var/num_current = 0 | ||
var/mission_class | ||
var/num_wanted | ||
|
||
/obj/machinery/drill/mission/examine() | ||
. = ..() | ||
. += "<span class='notice'>The drill contains [num_current] of the [num_wanted] samples needed.</span>" | ||
|
||
/obj/machinery/drill/mission/start_mining() | ||
if(mining.vein_class < mission_class && mining) | ||
say("Error: A vein class of [mission_class] or greater is required for operation.") | ||
return | ||
. = ..() | ||
|
||
/obj/machinery/drill/mission/mine_success() | ||
num_current++ | ||
if(num_current == num_wanted) | ||
SEND_SIGNAL(src, COMSIG_DRILL_SAMPLES_DONE) | ||
|
||
/obj/machinery/drill/mission/ruin | ||
name = "industrial grade mining drill" | ||
desc = "A large scale laser drill. It's able to mine vast amounts of minerals from near-surface ore pockets, this one is designed for mining outposts." | ||
mission_class = 4 | ||
num_wanted = 15 | ||
|
||
/obj/item/drill_readout | ||
name = "drill debug information" | ||
desc = "Created by a mining outpost drill." | ||
icon = 'icons/obj/bureaucracy.dmi' | ||
icon_state = "paper" | ||
item_state = "paper" | ||
w_class = WEIGHT_CLASS_SMALL |
This file was deleted.
Oops, something went wrong.
This file contains 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 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