Skip to content

Commit

Permalink
coding base, needs tuning and sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
SECBATON-GRIFFON committed Dec 31, 2024
1 parent 6dd12da commit 0b9d06c
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
17 changes: 17 additions & 0 deletions code/game/mecha/mecha_construction_chassis.dm
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,20 @@
spawn()
qdel (src)
return

// ROSWELL //
/datum/construction/mecha_chassis/roswell
steps = list(list(Co_KEY=/obj/item/mecha_parts/part/roswell_body),//1
list(Co_KEY=/obj/item/mecha_parts/part/roswell_dome),//2
list(Co_KEY=/obj/item/mecha_parts/part/roswell_hoverer,Co_AMOUNT=3)//3
)

/datum/construction/mecha_chassis/roswell/spawn_result(mob/user as mob)
var/obj/item/mecha_parts/chassis/const_holder = holder
const_holder.construct = new /datum/construction/reversible/mecha/roswell(const_holder)
const_holder.icon = 'icons/mecha/mech_construction.dmi'
const_holder.icon_state = "roswell0"
const_holder.setDensity(TRUE)
spawn()
qdel (src)
return
7 changes: 7 additions & 0 deletions code/game/mecha/mecha_construction_paths.dm
Original file line number Diff line number Diff line change
Expand Up @@ -698,3 +698,10 @@

mainboard = /obj/item/weapon/circuitboard/mecha/clarke/main
peripherals = /obj/item/weapon/circuitboard/mecha/clarke/peripherals

/datum/construction/reversible/mecha/roswell
result = "/obj/mecha/combat/roswell"
base_icon = "roswell"

mainboard = /obj/item/weapon/circuitboard/mecha/roswell/main

Check failure on line 706 in code/game/mecha/mecha_construction_paths.dm

View workflow job for this annotation

GitHub Actions / Run linters

OD0404: Path /obj/item/weapon/circuitboard/mecha/roswell/main does not exist
peripherals = /obj/item/weapon/circuitboard/mecha/roswell/peripherals

Check failure on line 707 in code/game/mecha/mecha_construction_paths.dm

View workflow job for this annotation

GitHub Actions / Run linters

OD0404: Path /obj/item/weapon/circuitboard/mecha/roswell/peripherals does not exist
26 changes: 26 additions & 0 deletions code/game/mecha/mecha_parts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,32 @@
origin_tech = Tc_PROGRAMMING + "=2;" + Tc_MATERIALS + "=2;" + Tc_ENGINEERING + "=2"


///////// Roswell

/obj/item/mecha_parts/chassis/roswell
name = "Roswell Chassis"

/obj/item/mecha_parts/chassis/roswell/New()
..()
construct = new /datum/construction/mecha_chassis/roswell(src)

/obj/item/mecha_parts/part/roswell_body
name="Roswell Body"
icon_state = "roswell_body"
origin_tech = Tc_PROGRAMMING + "=2;" + Tc_MATERIALS + "=2;" + Tc_BIOTECH + "=2;" + Tc_ENGINEERING + "=2" + Tc_ALIEN + "=5"

/obj/item/mecha_parts/part/roswell_dome
name="Roswell Dome"
desc="A transparent dome covering the ship."
icon_state = "roswell_dome"
origin_tech = Tc_PROGRAMMING + "=3;" + Tc_MATERIALS + "=2" + Tc_ALIEN + "=5"

/obj/item/mecha_parts/part/roswell_hoverer
name="Roswell Hoverer"
desc="An anti-gravity device allowing for ship levitation."
icon_state = "roswell_hoverer"
origin_tech = Tc_PROGRAMMING + "=2;" + Tc_MATERIALS + "=2;" + Tc_ENGINEERING + "=2" + Tc_ALIEN + "=5"

///////// Circuitboards

/obj/item/weapon/circuitboard/mecha
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/alien/alien.dm
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ In all, this is a lot like the monkey code. /N

//This proc is NOT useless, we make it so that aliens have an halved siemens_coeff. Which means they take half damage
//I will personally find the retard who made all these VARIABLES into FUCKING CONSTANTS. THE FUCKING SOURCE AND THE SHOCK DAMAGE, CONSTANTS ? YOU THINK ?
/mob/living/carbon/alien/electrocute_act(const/shock_damage, const/obj/source, const/siemens_coeff = 1)
/mob/living/carbon/alien/electrocute_act(const/shock_damage, const/obj/source, const/siemens_coeff = 1, def_zone = null, incapacitation_duration = 20 SECONDS)

var/damage = shock_damage * siemens_coeff

Expand Down

0 comments on commit 0b9d06c

Please sign in to comment.