Skip to content

Commit

Permalink
Start of Warfare Module 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zattarra committed Apr 22, 2024
1 parent c7fe7ad commit 9642f28
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 0 deletions.
3 changes: 3 additions & 0 deletions maplestation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6070,6 +6070,7 @@
#include "maplestation_modules\code\__DEFINES\keybinding.dm"
#include "maplestation_modules\code\__DEFINES\living.dm"
#include "maplestation_modules\code\__DEFINES\mecha.dm"
#include "maplestation_modules\code\__DEFINES\mobfactions.dm"
#include "maplestation_modules\code\__DEFINES\paperwork_defines.dm"
#include "maplestation_modules\code\__DEFINES\signals.dm"
#include "maplestation_modules\code\__DEFINES\spans.dm"
Expand Down Expand Up @@ -6491,7 +6492,9 @@
#include "maplestation_modules\story_content\casual_clothing\code\casualclothing.dm"
#include "maplestation_modules\story_content\chaplain_equipment\code\chaplainclothing.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\artillery_shells.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\drones.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\kajari_beam.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redparts.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\singulo_warhead.dm"
#include "maplestation_modules\story_content\kimono\code\kimonoclothing.dm"
#include "maplestation_modules\story_content\laurence_equipment\code\laurence_clothing.dm"
Expand Down
2 changes: 2 additions & 0 deletions maplestation_modules/code/__DEFINES/mobfactions.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// All DEEP RED event machines.
#define FACTION_DEEPRED "deepred"
46 changes: 46 additions & 0 deletions maplestation_modules/story_content/deepred_warfare/code/drones.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/mob/living/basic/reddrone
name = "generic deep red drone"
desc = "A generic drone."
icon = 'maplestation_modules/story_content/deepred_warfare/icons/reddrone.dmi'
icon_state = "rapid_light_flying"
icon_living = "rapid_light_flying"
icon_dead = "rapid_light_flying_dead"
gender = NEUTER
mob_biotypes = MOB_ROBOTIC

// Relatively weak armour.
health = 60
maxHealth = 60

// But, armour is optimized for thermal and energy damage.
var/list/damage_coeff = list(BRUTE = 1, BURN = 0.5, TOX = 0, STAMINA = 0, OXY = 0)

Check failure on line 16 in maplestation_modules/story_content/deepred_warfare/code/drones.dm

View workflow job for this annotation

GitHub Actions / Run Linters

/mob/living/basic/reddrone redeclares var "damage_coeff"

// Most drones are ranged attackers so they don't deal much melee damage.
melee_damage_lower = 5
melee_damage_upper = 5

attack_verb_continuous = "rams"
attack_verb_simple = "ram"
attack_sound = 'sound/weapons/genhit1.ogg'
attack_vis_effect = ATTACK_EFFECT_PUNCH
verb_say = "states"
verb_ask = "queries"
verb_exclaim = "declares"
verb_yell = "alarms"
bubble_icon = "machine"

faction = list(FACTION_DEEPRED)
combat_mode = TRUE
speech_span = SPAN_ROBOT
death_message = "shudders, then falls to the ground, inoperable."

habitable_atmos = list("min_oxy" = 0, "max_oxy" = 0, "min_plas" = 0, "max_plas" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0)
minimum_survivable_temperature = TCMB

// Add this later.
// ai_controller =

/mob/living/basic/reddrone/Initialize(mapload)
. = ..()
var/static/list/death_loot = list(/obj/item/stack/sheet/plasteel = 3, /obj/item/stock_parts/cell/redtech/empty = 1, /obj/item/stock_parts/servo/redtech = 1)
AddElement(/datum/element/death_drops, death_loot)
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/obj/item/stock_parts/cell/redtech
name = "strange red power cell"
desc = "A strange red power cell. Its design is unlike anything you've seen before. It seems to be EMP resistant."
icon = 'maplestation_modules/story_content/deepred_warfare/icons/redparts.dmi'
icon_state = "redcell"
// Just an EMP resistant bluespace cell.
maxcharge = STANDARD_CELL_CHARGE * 40
custom_materials = list(/datum/material/glass=HALF_SHEET_MATERIAL_AMOUNT)
chargerate = STANDARD_CELL_CHARGE * 4

/obj/item/stock_parts/cell/redtech/empty
empty = TRUE

/obj/item/stock_parts/cell/redtech/Initialize(mapload)
AddElement(/datum/element/empprotection, EMP_PROTECT_SELF)
return ..()

/obj/item/stock_parts/servo/redtech
name = "precise red servo"
desc = "A precise red servo motor. Its design is unlike anything you've seen before."
icon = 'maplestation_modules/story_content/deepred_warfare/icons/redparts.dmi'
icon_state = "redservo"
// Just a reskinned femto servo.
rating = 4
energy_rating = 10
custom_materials = list(/datum/material/iron=HALF_SHEET_MATERIAL_AMOUNT)
Binary file not shown.
Binary file not shown.

0 comments on commit 9642f28

Please sign in to comment.