mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* fixes contractions to proper english in negative.dm * fixes possessives in miscellaneous.dm * fixes capitalization in brain_item.dm * fixes capitalization in liver.dm * Fixes negative.dm typo * adds a missing i to ai _DEFINES * Fixes typo in cargo defines to spell auxiliary properly * fixes contractions in code\datums\action.dm * fixes capitalization in code\datums\components\religious_tool.dm * Fixes spelling of sudoriferous in code\datums\diseases\advance\symptoms\fire.dm * changes necrotizing tissues and organs to necrosing tissues and organs in code\datums\diseases\advance\symptoms\flesh_eating.dm necrosing is proper english here * Fixes a missing letter in code\datums\diseases\advance\symptoms\itching.dm * Changes s to z in code\datums\diseases\advance\symptoms\radiation.dm * Updates clarity in code\datums\diseases\brainrot.dm * spells vengeance properly in code\datums\diseases\parrotpossession.dm * fixes grammar in code\datums\diseases\wizarditis.dm * fixes the spelling of "casualties" in code\datums\ert.dm * removes extra t in code\datums\martial\cqc.dm * Updates code\datums\martial\flying_fang.dm to match style of previous code * adds t to code\datums\mutations\antenna.dm * spells agitation right in code\datums\mutations\hulk.dm * spells perceive right in code\datums\mutations\sight.dm * fixes a contraction in code\datums\ruins\lavaland.dm * changes "unbreachable" to "impenetrable" and "tradestation" to "trade station", as well as fixing a typo in code\datums\ruins\space.dm * fixes typos in code\datums\shuttles.dm * fixes a typo in code\datums\station_traits\negative_traits.dm * Fixes a typo in code\datums\station_traits\positive_traits.dm * Fixes spelling in code\datums\wires\mech_fabricator.dm * fixes typo in code\datums\wounds\burns.dm * resanguination is not a real word * fixes typo in code\game\gamemodes\changeling\traitor_chan.dm * fixes typos in code\game\gamemodes\clock_cult\clock_cult.dm * fixes spelling in code\game\gamemodes\cult\cult.dm * adds an s to posses in code\game\gamemodes\eldritch_cult\eldritch_cult.dm * fixes a spelling mistake in code\game\gamemodes\hivemind\radar.dm * fixes a typo in code\game\gamemodes\malfunction\malf.dm * fixes spelling mistake in code\game\gamemodes\wizard\wizard.dm * Fixes a spelling mistake in code\game\machinery\bounty_board.dm * fixes whatever the fuck medical kiosks were spelling wise * removes a t and lowercases bluespace as it isn't a proper noun in code\game\machinery\sci_bombardment.dm * Fixes spelling mistake in code\game\machinery\shuttle\shuttle_heater.dm * Fixes spelling issue in code\game\machinery\stasis.dm * Fixes spelling issue in code\game\machinery\telecomms\computers\logbrowser.dm * oranges can't fucking spell in code\game\mecha\equipment\tools\medical_tools.dm * authentication is now spelled correctly in code\game\mecha\mech_fabricator.dm * fixes spelling mistake in code\game\mecha\mecha.dm * Updates "Defence" to "Defense" to be more in line with sprite information * Fixes spelling issue in code\game\objects\items\grenades\chem_grenade.dm * updates mecha defence mode to defense mode to be more in line with what is written as the icon_state * Fixes english in code\game\objects\items\implants\implant_greytide.dm * fixes spelling issue in code\game\objects\items\robot\robot_parts.dm * fixes spelling issues in code\game\objects\items\storage\lockbox.dm * Revert "Changes s to z in code\datums\diseases\advance\symptoms\radiation.dm" This reverts commit170f514f67to change the z back to an s * updates an extra m in object path in code\game\objects\structures\signs\signs_departments.dm * spelling fix in code\game\objects\structures\crates_lockers\closets\bodybag.dm * spells otherworldly correctly in code\game\objects\items\twohanded.dm * food service is 2 separate words in code\game\objects\structures\crates_lockers\closets\job_closets.dm * Fixes a spelling mistake in code\game\objects\items\toys.dm * Fixes spelling of Nanotrasen in code\game\objects\items\supermatter_delaminator.dm * Adderall is a proper noun in code\game\objects\items\sharpener.dm * fixes spelling mistake in code\game\objects\items\religion.dm * code\game\objects\items\puzzle_pieces.dm * Janitalia is a proper noun * Fixes spelling of occurrence in code\game\objects\items\miscellaneous.dm * fixes the spelling of nurture and fixes a title in code\game\objects\items\manuals.dm * @cuackles can't capitalize in code\game\objects\items\holy_weapons.dm * nobody can spell environment in code\game\objects\items\holosign_creator.dm * code\game\objects\items\gems.dm spelling fix * spelling fix in code\game\objects\items\cards_ids.dm * spelling fix code\game\objects\items\airlock_painter.dm * map object paths updated for the one letter change to an object path * more fixes * Revert "updates an extra m in object path in code\game\objects\structures\signs\signs_departments.dm" This reverts commit98cb63b396. * Revert "map object paths updated for the one letter change to an object path" This reverts commitf4220a3505. * Update mecha_topic.dm * i hate myself
60 lines
2.3 KiB
Plaintext
60 lines
2.3 KiB
Plaintext
/obj/item/sharpener
|
|
name = "whetstone"
|
|
icon = 'yogstation/icons/obj/kitchen.dmi'
|
|
icon_state = "sharpener"
|
|
desc = "A block that makes things sharp."
|
|
force = 5
|
|
var/used = 0
|
|
var/increment = 4
|
|
var/max = 30
|
|
var/prefix = "sharpened"
|
|
var/requires_sharpness = 1
|
|
|
|
|
|
/obj/item/sharpener/attackby(obj/item/I, mob/user, params)
|
|
if(used)
|
|
to_chat(user, span_warning("The sharpening block is too worn to use again!"))
|
|
return
|
|
if(I.force >= max || I.throwforce >= max)//no esword sharpening
|
|
to_chat(user, span_warning("[I] is much too powerful to sharpen further!"))
|
|
return
|
|
if(requires_sharpness && !I.is_sharp())
|
|
to_chat(user, span_warning("You can only sharpen items that are already sharp, such as knives!"))
|
|
return
|
|
if(istype(I, /obj/item/melee/transforming/energy))
|
|
to_chat(user, span_warning("You don't think \the [I] will be the thing getting modified if you use it on \the [src]!"))
|
|
return
|
|
if(istype(I, /obj/item/twohanded))//some twohanded items should still be sharpenable, but handle force differently. therefore i need this stuff
|
|
var/obj/item/twohanded/TH = I
|
|
if(TH.force_wielded >= max)
|
|
to_chat(user, span_warning("[TH] is much too powerful to sharpen further!"))
|
|
return
|
|
if(TH.wielded)
|
|
to_chat(user, span_warning("[TH] must be unwielded before it can be sharpened!"))
|
|
return
|
|
if(TH.force_wielded > initial(TH.force_wielded))
|
|
to_chat(user, span_warning("[TH] has already been refined before. It cannot be sharpened further!"))
|
|
return
|
|
TH.force_wielded = clamp(TH.force_wielded + increment, 0, max)//wieldforce is increased since normal force wont stay
|
|
if(I.force > initial(I.force))
|
|
to_chat(user, span_warning("[I] has already been refined before. It cannot be sharpened further!"))
|
|
return
|
|
user.visible_message(span_notice("[user] sharpens [I] with [src]!"), span_notice("You sharpen [I], making it much more deadly than before."))
|
|
playsound(src, 'sound/items/unsheath.ogg', 25, 1)
|
|
I.sharpness = SHARP_EDGED
|
|
I.force = clamp(I.force + increment, 0, max)
|
|
I.throwforce = clamp(I.throwforce + increment, 0, max)
|
|
I.name = "[prefix] [I.name]"
|
|
name = "worn out [name]"
|
|
desc = "[desc] At least, it used to."
|
|
used = 1
|
|
update_icon()
|
|
|
|
/obj/item/sharpener/super
|
|
name = "super whetstone"
|
|
desc = "A block that will make your weapon sharper than Einstein on Adderall."
|
|
increment = 200
|
|
max = 200
|
|
prefix = "super-sharpened"
|
|
requires_sharpness = 0
|