* Gets rid of this const

* Unused const

* Update forensics.dm

* Drinks defines

* uNUSED

* Update Keywords.dm

* Update Keywords.dm

* Add

* yar

* Fingerprint
This commit is contained in:
Cameron Lennox
2025-09-14 18:10:48 -04:00
committed by GitHub
parent 75facda6b9
commit ffd8b7e362
12 changed files with 55 additions and 41 deletions
-2
View File
@@ -1,6 +1,4 @@
//STRIKE TEAMS
var/const/commandos_possible = 6 //if more Commandos are needed in the future
/client/proc/strike_team()
set category = "Fun.Event Kit"
set name = "Spawn Strike Team"
-1
View File
@@ -4,7 +4,6 @@
//This is the output of the stringpercent(print) proc, and means about 80% of
//the print must be there for it to be complete. (Prints are 32 digits)
var/const/FINGERPRINT_COMPLETE = 6
/proc/is_complete_print(var/print)
return stringpercent(print) <= FINGERPRINT_COMPLETE
@@ -1,8 +1,3 @@
/var/const/DRINK_FIZZ = "fizz"
/var/const/DRINK_ICE = "ice"
/var/const/DRINK_ICON_DEFAULT = ""
/var/const/DRINK_ICON_NOISY = "_noise"
/obj/item/reagent_containers/food/drinks/glass2
name = "glass" // Name when empty
var/base_name = "glass" // Name to put in front of drinks, i.e. "[base_name] of [contents]"
+4 -8
View File
@@ -5,12 +5,11 @@
//Blood levels. These are percentages based on the species blood_volume var.
//Retained for archival/reference purposes - KK
/*
var/const/BLOOD_VOLUME_SAFE = 85
var/const/BLOOD_VOLUME_OKAY = 75
var/const/BLOOD_VOLUME_BAD = 60
var/const/BLOOD_VOLUME_SURVIVE = 40
BLOOD_VOLUME_SAFE = 85
BLOOD_VOLUME_OKAY = 75
BLOOD_VOLUME_BAD = 60
BLOOD_VOLUME_SURVIVE = 40
*/
var/const/CE_STABLE_THRESHOLD = 0.5
/mob/living/carbon/human/var/datum/reagents/vessel // Container for blood and BLOOD ONLY. Do not transfer other chems here.
/mob/living/carbon/human/var/var/pale = 0 // Should affect how mob sprite is drawn, but currently doesn't.
@@ -109,9 +108,6 @@ var/const/CE_STABLE_THRESHOLD = 0.5
if(CE_STABLE in chem_effects)
dmg_coef = 0.5
threshold_coef = 0.75
// These are Bay bits, do some sort of calculation.
// dmg_coef = min(1, 10/chem_effects[CE_STABLE]) //TODO: add effect for increased damage
// threshold_coef = min(dmg_coef / CE_STABLE_THRESHOLD, 1)
if(blood_volume_raw >= species.blood_volume*species.blood_level_safe)
if(pale)
@@ -1,6 +1,3 @@
/datum/reagent
var/name = REAGENT_DEVELOPER_WARNING
var/id = REAGENT_ID_DEVELOPER_WARNING
-10
View File
@@ -26,16 +26,6 @@
OOP_UNARY - Unary Operators
OOP_GROUP - Parentheses
*/
var/const/OOP_OR = 1 // ||
var/const/OOP_AND = OOP_OR + 1 // &&
var/const/OOP_BIT = OOP_AND + 1 // &, |
var/const/OOP_EQUAL = OOP_BIT + 1 // ==, !=
var/const/OOP_COMPARE = OOP_EQUAL + 1 // >, <, >=, <=
var/const/OOP_ADD = OOP_COMPARE + 1 // +, -
var/const/OOP_MULTIPLY= OOP_ADD + 1 // *, /, %
var/const/OOP_POW = OOP_MULTIPLY + 1 // ^
var/const/OOP_UNARY = OOP_POW + 1 // !
var/const/OOP_GROUP = OOP_UNARY + 1 // ()
/*
Class: node
+9 -4
View File
@@ -3,10 +3,10 @@
/*
File: Keywords
*/
var/const/KW_FAIL = 0 //Fatal error; stop parsing entire script.
var/const/KW_PASS = 1 //OK
var/const/KW_ERR = 2 //Non-fatal error, keyword couldn't be handled properly. Ignore keyword but continue on.
var/const/KW_WARN = 3 //Warning
#define KW_FAIL 0 //Fatal error; stop parsing entire script.
#define KW_PASS 1 //OK
#define KW_ERR 2 //Non-fatal error, keyword couldn't be handled properly. Ignore keyword but continue on.
#define KW_WARN 3 //Warning
/*
var/const/Class: n_Keyword
@@ -156,3 +156,8 @@ var/const/Represents a special statement in the code triggered by a keyword.
else
parser.errors+=new/scriptError/BadToken(parser.curToken)
return KW_FAIL
#undef KW_FAIL
#undef KW_PASS
#undef KW_ERR
#undef KW_WARN