Skip to content

Commit

Permalink
Replaces some flags defined with ints with defines (#12932)
Browse files Browse the repository at this point in the history
* Replaces some flags defined with ints with defines

* More

* More flags to defines
  • Loading branch information
ivanmixo authored May 9, 2023
1 parent bb95858 commit 2122aa2
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/structures.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
icon = 'icons/obj/structures/structures.dmi'
var/climbable = FALSE
var/climb_delay = 50
var/flags_barrier = 0
var/flags_barrier = NONE
var/broken = FALSE //similar to machinery's stat BROKEN
obj_flags = CAN_BE_HIT
anchored = TRUE
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/window.dm
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
basestate = "rwindow"
max_integrity = 1500
reinf = TRUE
resistance_flags = 10 // I have no clue what those are.
resistance_flags = UNACIDABLE|XENO_DAMAGEABLE

/obj/structure/window/reinforced/tinted
name = "tinted window"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/clothing/glasses/glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
flags_equip_slot = ITEM_SLOT_EYES
flags_armor_protection = EYES
var/deactive_state = "degoggles"
var/vision_flags = 0
var/vision_flags = NONE
var/darkness_view = 2 //Base human is 2
var/invis_view = SEE_INVISIBLE_LIVING
var/invis_override = 0 //Override to allow glasses to set higher than normal see_invis
Expand Down
2 changes: 1 addition & 1 deletion code/modules/clothing/head/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
flags_inventory = COVEREYES|COVERMOUTH
flags_inv_hide = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDEALLHAIR
item_state="cueball"
flags_inventory = 0
flags_inventory = NONE
flags_armor_protection = HEAD|FACE|EYES

/obj/item/clothing/head/greenbandanna
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/carbon/human/life/life_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
//This proc returns a number made up of the flags for body parts which you are protected on. (such as HEAD, CHEST, GROIN, etc. See setup.dm for the full list)
/mob/living/carbon/human/proc/get_flags_heat_protection_flags(temperature) //Temperature is the temperature you're being exposed to.

var/thermal_protection_flags = 0
var/thermal_protection_flags = NONE

//Handle normal clothing
if(head)
Expand Down Expand Up @@ -131,7 +131,7 @@
//See proc/get_flags_heat_protection_flags(temperature) for the description of this proc.
/mob/living/carbon/human/proc/get_flags_cold_protection_flags(temperature, deficit = 0)

var/thermal_protection_flags = 0
var/thermal_protection_flags = NONE

//Handle normal clothing
if(head)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hostile/shade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
melee_damage = 12
attacktext = "metaphysically strikes"
stop_automated_movement = TRUE
status_flags = 0
status_flags = NONE
faction = list("cult")
status_flags = CANPUSH
del_on_death = TRUE
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hostile/syndicate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
attacktext = "slashes"
attack_sound = 'sound/weapons/blade1.ogg'
armour_penetration = 35
status_flags = 0
status_flags = NONE
projectile_deflect_chance = 50


Expand Down
2 changes: 1 addition & 1 deletion code/modules/vehicles/multitile/hardpoints.dm
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ Currently only has the tank hardpoints

//Special ammo magazines for hardpoint modules. Some aren't here since you can use normal magazines on them
/obj/item/ammo_magazine/tank
flags_magazine = 0 //No refilling
flags_magazine = NONE //No refilling
var/point_cost = 0

/obj/item/ammo_magazine/tank/ltb_cannon
Expand Down

0 comments on commit 2122aa2

Please sign in to comment.