forked from yogstation13/Yogstation
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
destroys the entire codebase for golf (yogstation13#20658)
* destroys the entire codebase for golf * Swags out abandoned crates
- Loading branch information
1 parent
3407f56
commit c3b4fd3
Showing
14 changed files
with
284 additions
and
244 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Notifies tools that something is happening. | ||
|
||
// Sucessful actions against an atom. | ||
///Called from /atom/proc/tool_act (atom) | ||
#define COMSIG_TOOL_ATOM_ACTED_PRIMARY(tooltype) "tool_atom_acted_[tooltype]" |
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 |
---|---|---|
@@ -1,73 +1,75 @@ | ||
#define ARMORID "armor-[melee]-[bullet]-[laser]-[energy]-[bomb]-[bio]-[rad]-[fire]-[acid]-[magic]-[wound]" | ||
|
||
/proc/getArmor(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 0, acid = 0, magic = 0, wound = 0) | ||
. = locate(ARMORID) | ||
if (!.) | ||
. = new /datum/armor(melee, bullet, laser, energy, bomb, bio, rad, fire, acid, magic, wound) | ||
. = locate(ARMORID) | ||
if (!.) | ||
. = new /datum/armor(melee, bullet, laser, energy, bomb, bio, rad, fire, acid, magic, wound) | ||
|
||
/datum/armor | ||
datum_flags = DF_USE_TAG | ||
var/melee | ||
var/bullet | ||
var/laser | ||
var/energy | ||
var/bomb | ||
var/bio | ||
var/rad | ||
var/fire | ||
var/acid | ||
var/magic | ||
var/wound | ||
datum_flags = DF_USE_TAG | ||
var/melee | ||
var/bullet | ||
var/laser | ||
var/energy | ||
var/bomb | ||
var/bio | ||
var/rad | ||
var/fire | ||
var/acid | ||
var/magic | ||
var/wound | ||
|
||
/datum/armor/New(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 0, acid = 0, magic = 0, wound = 0) | ||
src.melee = melee | ||
src.bullet = bullet | ||
src.laser = laser | ||
src.energy = energy | ||
src.bomb = bomb | ||
src.bio = bio | ||
src.rad = rad | ||
src.fire = fire | ||
src.acid = acid | ||
src.magic = magic | ||
src.wound = wound | ||
tag = ARMORID | ||
src.melee = melee | ||
src.bullet = bullet | ||
src.laser = laser | ||
src.energy = energy | ||
src.bomb = bomb | ||
src.bio = bio | ||
src.rad = rad | ||
src.fire = fire | ||
src.acid = acid | ||
src.magic = magic | ||
src.wound = wound | ||
tag = ARMORID | ||
|
||
/datum/armor/proc/modifyRating(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 0, acid = 0, magic = 0, wound = 0) | ||
return getArmor(src.melee+melee, src.bullet+bullet, src.laser+laser, src.energy+energy, src.bomb+bomb, src.bio+bio, src.rad+rad, src.fire+fire, src.acid+acid, src.magic+magic, src.wound+wound) | ||
return getArmor(src.melee+melee, src.bullet+bullet, src.laser+laser, src.energy+energy, src.bomb+bomb, src.bio+bio, src.rad+rad, src.fire+fire, src.acid+acid, src.magic+magic, src.wound+wound) | ||
|
||
/datum/armor/proc/modifyAllRatings(modifier = 0) | ||
return getArmor(melee+modifier, bullet+modifier, laser+modifier, energy+modifier, bomb+modifier, bio+modifier, rad+modifier, fire+modifier, acid+modifier, magic+modifier, wound+modifier) | ||
return getArmor(melee+modifier, bullet+modifier, laser+modifier, energy+modifier, bomb+modifier, bio+modifier, rad+modifier, fire+modifier, acid+modifier, magic+modifier, wound+modifier) | ||
|
||
/datum/armor/proc/setRating(melee, bullet, laser, energy, bomb, bio, rad, fire, acid, magic, wound) | ||
return getArmor((isnull(melee) ? src.melee : melee),\ | ||
(isnull(bullet) ? src.bullet : bullet),\ | ||
(isnull(laser) ? src.laser : laser),\ | ||
(isnull(energy) ? src.energy : energy),\ | ||
(isnull(bomb) ? src.bomb : bomb),\ | ||
(isnull(bio) ? src.bio : bio),\ | ||
(isnull(rad) ? src.rad : rad),\ | ||
(isnull(fire) ? src.fire : fire),\ | ||
(isnull(acid) ? src.acid : acid),\ | ||
(isnull(magic) ? src.magic : magic),\ | ||
(isnull(wound) ? src.wound : wound)) | ||
return getArmor( | ||
(isnull(melee) ? src.melee : melee), | ||
(isnull(bullet) ? src.bullet : bullet), | ||
(isnull(laser) ? src.laser : laser), | ||
(isnull(energy) ? src.energy : energy), | ||
(isnull(bomb) ? src.bomb : bomb), | ||
(isnull(bio) ? src.bio : bio), | ||
(isnull(rad) ? src.rad : rad), | ||
(isnull(fire) ? src.fire : fire), | ||
(isnull(acid) ? src.acid : acid), | ||
(isnull(magic) ? src.magic : magic), | ||
(isnull(wound) ? src.wound : wound), | ||
) | ||
|
||
/datum/armor/proc/getRating(rating) | ||
return vars[rating] | ||
return vars[rating] | ||
|
||
/datum/armor/proc/getList() | ||
return list(MELEE = melee, BULLET = bullet, LASER = laser, ENERGY = energy, BOMB = bomb, BIO = bio, RAD = rad, FIRE = fire, ACID = acid, MAGIC = magic, WOUND = wound) | ||
return list(MELEE = melee, BULLET = bullet, LASER = laser, ENERGY = energy, BOMB = bomb, BIO = bio, RAD = rad, FIRE = fire, ACID = acid, MAGIC = magic, WOUND = wound) | ||
|
||
/datum/armor/proc/attachArmor(datum/armor/AA) | ||
return getArmor(melee+AA.melee, bullet+AA.bullet, laser+AA.laser, energy+AA.energy, bomb+AA.bomb, bio+AA.bio, rad+AA.rad, fire+AA.fire, acid+AA.acid, magic+AA.magic, wound+AA.wound) | ||
return getArmor(melee+AA.melee, bullet+AA.bullet, laser+AA.laser, energy+AA.energy, bomb+AA.bomb, bio+AA.bio, rad+AA.rad, fire+AA.fire, acid+AA.acid, magic+AA.magic, wound+AA.wound) | ||
|
||
/datum/armor/proc/detachArmor(datum/armor/AA) | ||
return getArmor(melee-AA.melee, bullet-AA.bullet, laser-AA.laser, energy-AA.energy, bomb-AA.bomb, bio-AA.bio, rad-AA.rad, fire-AA.fire, acid-AA.acid, magic-AA.magic, wound-AA.wound) | ||
return getArmor(melee-AA.melee, bullet-AA.bullet, laser-AA.laser, energy-AA.energy, bomb-AA.bomb, bio-AA.bio, rad-AA.rad, fire-AA.fire, acid-AA.acid, magic-AA.magic, wound-AA.wound) | ||
|
||
/datum/armor/vv_edit_var(var_name, var_value) | ||
if (var_name == NAMEOF(src, tag)) | ||
return FALSE | ||
. = ..() | ||
tag = ARMORID // update tag in case armor values were edited | ||
if (var_name == NAMEOF(src, tag)) | ||
return FALSE | ||
. = ..() | ||
tag = ARMORID // update tag in case armor values were edited | ||
|
||
#undef ARMORID | ||
#undef ARMORID |
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
Oops, something went wrong.