Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes orbital droppers use map_templates. #7996

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Makes orbital droppers use map_templates.
  • Loading branch information
NonQueueingMatt committed Jan 12, 2020
commit 0da35228075965fe4cf2ae6a9482d8d6653d7c56
1 change: 1 addition & 0 deletions aurorastation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2634,4 +2634,5 @@
#include "maps\exodus\code\exodus_unittest.dm"
#include "maps\runtime\code\runtime.dm"
#include "maps\runtime\code\runtime_unittest.dm"
#include "maps\templates\orbital\orbital_templates.dm"
// END_INCLUDE
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
var/announcer_name = "Mining Requests Console"
var/announcer_channel = "Supply" // If not emagged, will announce to this channel. If emagged, will always announce on the common channel.

var/template_name
var/datum/map_template/map

/obj/item/device/orbital_dropper/attack_self(mob/user)
zoom(user, tileoffset, viewsize)
Expand Down Expand Up @@ -84,12 +84,11 @@
icon_state = "drillpointer"

/obj/item/device/orbital_dropper/proc/orbital_drop(var/turf/target, var/user)
var/dmm_suite/maploader = new
if(!maploader)
log_debug("Error, unable to load maploader in proc orbital_drop!")
if(!map)
return
log_and_message_admins("[key_name_admin(src)] has used a [src] at <A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[target.x];Y=[target.y];Z=[target.z]'>JMP</a>.")
maploader.load_map(file("maps/templates/orbital/" + template_name), target.x, target.y, target.z, no_changeturf = TRUE)
map.load(target, TRUE) //Target must be the center!


/obj/item/device/orbital_dropper/emag_act(var/remaining_charges, var/mob/user)
if(!emagged)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
drop_message = "Stand by for drillfall, ETA ten seconds, clear the targetted area."
drop_message_emagged = "St%n^ b* for dr$llfa#l, ETA t@n s*c%&ds, RUN."

template_name = "drill.dmm"
map = new /datum/map_template/drill

/obj/item/device/orbital_dropper/mecha
name = "mecha dropper"
Expand All @@ -18,7 +18,7 @@
announcer_name = "Respawn Mech Industries"
announcer_channel = "Common"

template_name = "combat-mecha.dmm"
map = new /datum/map_template/mecha

/obj/item/device/orbital_dropper/armory
name = "armory dropper"
Expand All @@ -31,7 +31,7 @@
announcer_name = "GunCourier Industries Autodrone"
announcer_channel = "Common"

template_name = "mini-armory.dmm"
map = new /datum/map_template/armory

/obj/item/device/orbital_dropper/armory/syndicate
description_antag = "This is a stealthy variant of the standard armory orbital drop. It will not report itself dropping on common, unless emagged."
Expand Down
41 changes: 41 additions & 0 deletions html/changelogs/mattatlas-maploader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################

# Your name.
author: MattAtlas

# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True

# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Orbital drops now work properly."
11 changes: 11 additions & 0 deletions maps/templates/orbital/orbital_templates.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/datum/map_template/mecha
name = "Mecha Drop"
mappath = 'maps/templates/orbital/combat-mecha.dmm'

/datum/map_template/armory
name = "Armory Drop"
mappath = 'maps/templates/orbital/mini-armory.dmm'

/datum/map_template/drill
name = "Drill Drop"
mappath = 'maps/templates/orbital/drill.dmm'