Skip to content

Commit

Permalink
Adds ERA Stat Req Buff to Other Applicable Armors (vlggms#2428)
Browse files Browse the repository at this point in the history
* Fixes

* Remove extra empty line
  • Loading branch information
tile4 authored Sep 17, 2024
1 parent fc1d461 commit ceaea4c
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@
var/list/unlocked_list = list()
var/iff = TRUE


/obj/item/ego_weapon/black_silence_gloves/examine(mob/user)
. = ..()
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
. += span_notice("Due to your abilities, you get a -20 reduction to stat requirements when equipping this weapon.")

/obj/item/ego_weapon/black_silence_gloves/CanUseEgo(mob/living/user)
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
equip_bonus = 20
else
equip_bonus = 0
. = ..()

/obj/item/ego_weapon/black_silence_gloves/equipped(mob/user, slot)
. = ..()
if(!user)
Expand Down
14 changes: 14 additions & 0 deletions code/game/objects/items/ego_weapons/non_abnormality/kcorp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,20 @@
fire_sound = 'sound/weapons/gun/pistol/shot.ogg'
fire_sound_volume = 70

/obj/item/gun/ego_gun/pistol/kcorp/examine(mob/user)
. = ..()
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
. += span_notice("Due to your abilities, you get a -20 reduction to stat requirements when equipping this weapon.")

/obj/item/gun/ego_gun/pistol/kcorp/CanUseEgo(mob/living/user)
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
equip_bonus = 20
else
equip_bonus = 0
. = ..()


// Guns below
/obj/item/gun/ego_gun/pistol/kcorp/smg
Expand Down
15 changes: 15 additions & 0 deletions code/modules/clothing/suits/ego_gear/non_abnormality/index.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@
)
alternative_styles = list("index_proxy_open", "index_proxy_closed")

/obj/item/clothing/suit/armor/ego_gear/adjustable/index_proxy/examine(mob/user)
. = ..()
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
. += span_notice("Due to your abilities, you get a -20 reduction to stat requirements when equipping this armor.")

/obj/item/clothing/suit/armor/ego_gear/adjustable/index_proxy/CanUseEgo(mob/living/user)
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
equip_bonus = 20
else
equip_bonus = 0
. = ..()


/obj/item/clothing/suit/armor/ego_gear/city/index_mess
name = "index messenger armor"
desc = "Armor worn by index messengers."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
//Peqod Crew
/obj/item/clothing/suit/armor/ego_gear/pequod_captain
/obj/item/clothing/suit/armor/ego_gear/city/pequod_captain
name = "pequod captain's uniform"
desc = "A worn and rugged uniform worn by veteran fixers in U corp."
icon = 'icons/obj/clothing/ego_gear/suits.dmi'
worn_icon = 'icons/mob/clothing/ego_gear/suit.dmi'
icon_state = "pequod_ahab"
armor = list(RED_DAMAGE = 30, WHITE_DAMAGE = 30, BLACK_DAMAGE = 30, PALE_DAMAGE = 30)
slowdown = -0.1
Expand Down
15 changes: 15 additions & 0 deletions code/modules/clothing/suits/ego_gear/non_abnormality/wcorp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
JUSTICE_ATTRIBUTE = 55
)

/obj/item/clothing/suit/armor/ego_gear/wcorp/examine(mob/user)
. = ..()
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
. += span_notice("Due to your abilities, you get a -20 reduction to stat requirements when equipping this armor.")

/obj/item/clothing/suit/armor/ego_gear/wcorp/CanUseEgo(mob/living/user)
if(user.mind)
if(user.mind.assigned_role in list("Disciplinary Officer", "Emergency Response Agent")) //These guys get a bonus to equipping gacha.
equip_bonus = 20
else
equip_bonus = 0
. = ..()


/obj/item/clothing/head/ego_hat/wcorp
name = "w-corp cap"
desc = "A ball cap worn by w-corp."
Expand Down

0 comments on commit ceaea4c

Please sign in to comment.