mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
- Added atom/proc/search_contents_for. Recursively searches through all contents of all atoms inside specified one for matches, returns a list of found atoms.
- Added teleporter datum. do_teleport proc is now just a wrapper for it. - Added damage absorption to mechs. - Added mecha step and turn sounds. - Cleaned effects code a bit. - Metal foam should now block air movement. - Since sd_ lightning library chops areas into pieces, turrets now work with master area. - Tried to optimize DesignHasReqs proc. - Added plasma converter and laser cannon mecha equipment. - Other cosmetic changes. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2463 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -604,7 +604,15 @@ datum
|
||||
id = "mech_laser"
|
||||
build_type = MECHFAB
|
||||
req_tech = list("combat" = 3, "magnets" = 3)
|
||||
build_path = "/obj/item/mecha_parts/mecha_equipment/weapon/laser"
|
||||
build_path = "/obj/item/mecha_parts/mecha_equipment/weapon/energy/laser"
|
||||
|
||||
mech_laser_heavy
|
||||
name = "Exosuit Weapon Design (CH-LC \"Solaris\" Laser Cannon)"
|
||||
desc = "Allows for the construction of CH-LC Laser Cannon."
|
||||
id = "mech_laser_heavy"
|
||||
build_type = MECHFAB
|
||||
req_tech = list("combat" = 4, "magnets" = 4)
|
||||
build_path = "/obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/heavy"
|
||||
|
||||
mech_grenade_launcher
|
||||
name = "Exosuit Weapon Design (SGL-6 Grenade Launcher)"
|
||||
@@ -654,6 +662,14 @@ datum
|
||||
req_tech = list("magnets" = 3, "programming" = 3, "engineering" = 3)
|
||||
build_path = "/obj/item/mecha_parts/mecha_equipment/repair_droid"
|
||||
|
||||
mech_plasma_generator
|
||||
name = "Exosuit Module Design (Plasma Converter Module)"
|
||||
desc = "Exosuit-mounted plasma converter."
|
||||
id = "mech_plasma_generator"
|
||||
build_type = MECHFAB
|
||||
req_tech = list("plasmatech" = 2, "powerstorage"= 2, "engineering" = 2)
|
||||
build_path = "/obj/item/mecha_parts/mecha_equipment/plasma_generator"
|
||||
|
||||
////////////////////////////////////////
|
||||
//////////Disk Construction Disks///////
|
||||
////////////////////////////////////////
|
||||
|
||||
@@ -77,6 +77,23 @@ research holder datum.
|
||||
else
|
||||
return 0
|
||||
|
||||
//Checks to see if design has all the required pre-reqs.
|
||||
//Input: datum/design; Output: 0/1 (false/true)
|
||||
DesignHasReqs(var/datum/design/D)
|
||||
if(D.req_tech.len == 0)
|
||||
return 1
|
||||
var/matches = 0
|
||||
var/list/k_tech = list()
|
||||
for(var/datum/tech/known in known_tech)
|
||||
k_tech[known.id] = known.level
|
||||
for(var/req in D.req_tech)
|
||||
if(!isnull(k_tech[req]) && k_tech[req] >= D.req_tech[req])
|
||||
matches++
|
||||
if(matches == D.req_tech.len)
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
/*
|
||||
//Checks to see if design has all the required pre-reqs.
|
||||
//Input: datum/design; Output: 0/1 (false/true)
|
||||
DesignHasReqs(var/datum/design/D)
|
||||
@@ -92,7 +109,7 @@ research holder datum.
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
*/
|
||||
//Adds a tech to known_tech list. Checks to make sure there aren't duplicates and updates existing tech's levels if needed.
|
||||
//Input: datum/tech; Output: Null
|
||||
AddTech2Known(var/datum/tech/T)
|
||||
|
||||
Reference in New Issue
Block a user