Gentling mask that prevents wizards from casting spells (#35201)

* Gentling mask.

* Sprite adjust.

* Sprite tweak.

* Sprite tweak.

* Sprite tweak.

* Sprite tweak again.

* .

* Add to crate.

* Change to individual items.

* Sprite tweak.

---------

Co-authored-by: Hinaichigo <hinaichigo@github.com>
This commit is contained in:
Hinaichigo
2023-10-21 07:24:05 +09:00
committed by GitHub
parent 04de5f39c5
commit 09bc1a6f6e
9 changed files with 34 additions and 2 deletions

View File

@@ -406,7 +406,7 @@ var/global/objects_thrown_when_explode = FALSE
if(!user.put_in_hand_check(src, user.get_active_hand()))
return
//canremove==0 means that object may not be removed. You can still wear it. This only applies to clothing. /N
if(!canremove)
if(!canremove && user.is_wearing_item(src))
to_chat(user, "<span class='notice'>\The [src][cant_remove_msg]</span>")
return

View File

@@ -4,6 +4,7 @@
autoignition_temperature = AUTOIGNITION_FABRIC
var/list/species_restricted = null //Only these species can wear this kit.
var/wizard_garb = 0 //Wearing this empowers a wizard.
var/gentling //If TRUE, prevents the wearer from casting wizard spells.
var/eyeprot = 0 //for head and eyewear
var/nearsighted_modifier = 0 //positive values impair vision(welding goggles), negative values improve vision(prescription glasses)

View File

@@ -288,3 +288,15 @@
set src in usr
if(!usr.incapacitated())
activate(usr)
/obj/item/clothing/mask/gentling
name = "gentling mask"
desc = "In wool paper and acrylic the pain of experience is smoothed away into the aspect of a child. Neuronal clamps peek out from the concave interior surface. The mask is fastened by a brass chain, adorned by beads of glass, and branded on the forehead with the Holy Rhombus, a sign of the price of innocence."
icon_state = "gentlingmask"
item_state = "gentlingmask"
gentling = TRUE
canremove = FALSE
cant_remove_msg = " is clamped on!"
clothing_flags = MASKINTERNALS
origin_tech = Tc_BIOTECH + "=5"

View File

@@ -427,6 +427,11 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
if(!user.wearing_wiz_garb())
return 0
//gentling check
if((user_type == USER_TYPE_WIZARD) && (holder == user))
if(user.is_gentled())
return 0
return 1
/spell/proc/check_charge(var/skipcharge, mob/user)
@@ -687,6 +692,15 @@ Made a proc so this is not repeated 14 (or more) times.*/
return 1
*/
/mob/proc/is_gentled()
for(var/V in get_equipped_items())
if(isclothing(V))
var/obj/item/clothing/C = V
if(C.gentling)
to_chat(src, "<span class='warning'>You feel too humble to do that.</span>")
return TRUE
return FALSE
//Atomizes what data the spell shows, that way different spells such as pulse demon and vampire spells can have their own descriptions.
/spell/proc/generate_tooltip(var/previous_data = "")
var/dat = previous_data //In case you want to put some text at the top instead of bottom

View File

@@ -169,3 +169,8 @@
restocks_left = 3
sales_category = TRADE_VARIETY
/datum/trade_product/gentlingmask
name = "gentling mask"
path = /obj/item/clothing/mask/gentling
baseprice = 35
restocks_left = 3

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 KiB

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

After

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 46 KiB