Skip to content

Commit

Permalink
Merge pull request #5866 from wshuwshuwshi/Tesselate-Omnitool
Browse files Browse the repository at this point in the history
Tessellate Omnitool Litany (For real this time)
  • Loading branch information
Trilbyspaceclone authored Nov 30, 2024
2 parents 5a0e119 + 8d9dc9e commit 0224577
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
31 changes: 31 additions & 0 deletions code/game/objects/items/weapons/tools/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,34 @@
STOP_PROCESSING(SSobj, src)
qdel(src)
return

/obj/item/tool/tessellate_omni
name = "mending touch"
desc = "Through the compassionate prayer, a Tessellate can ply and mend broken flesh, albeit not quite as effectively as actual tools."
icon_state = "fact_omni"
force = WEAPON_FORCE_DANGEROUS
worksound = WORKSOUND_DRIVER_TOOL
w_class = ITEM_SIZE_HUGE
slot_flags = null
sanctified = TRUE //Isn't affected by the general Absolutist speed penalty, still has its slow workspseed
flags = CONDUCT
tool_qualities = list(QUALITY_CLAMPING = 30, QUALITY_CAUTERIZING = 30, QUALITY_RETRACTING = 30, QUALITY_DRILLING = 30, QUALITY_SAWING = 30, QUALITY_BONE_SETTING = 30, QUALITY_CUTTING = 30, QUALITY_BONE_GRAFTING = 30)
no_double_tact = TRUE
degradation = 0
workspeed = 0.8
max_upgrades = 0 // Can't upgrade it
price_tag = 0
var/mob/living/carbon/holder // The one that summoned the tool

/obj/item/tool/tessellate_omni/New(var/loc, var/mob/living/carbon/Maker)
..()
holder = Maker
START_PROCESSING(SSobj, src)

/obj/item/tool/tessellate_omni/Process()
..()
if(loc != holder) // We're no longer in the owner's hand.
visible_message("The [src.name] fades into nothingness.")
STOP_PROCESSING(SSobj, src)
qdel(src)
return
27 changes: 27 additions & 0 deletions code/modules/core_implant/cruciform/rituals/path.dm
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,33 @@

return TRUE

/datum/ritual/cruciform/tessellate/omnitool
name = "Touch of the Bleeding-Heart"
phrase = "Exaudi clamorem meum, et amplius noli pati." //"Hear my cry, and suffer no more."
desc = "Channels the power of your cruciform into an incorporeal omnitool."
power = 40
cooldown = TRUE
cooldown_time = 2 MINUTES
cooldown_category = "omnitool_litany"
success_message = "Your hand glows with holy light, and you feel more in tune with the workings of flesh."

/datum/ritual/cruciform/tessellate/omnitool/perform(mob/living/carbon/human/user, obj/item/implant/core_implant/cruciform/C)
var/stat_bio = 25
var/stat_cog = 25
var/obj/item/tool/tessellate_omni/tool = new /obj/item/tool/tessellate_omni(src, user)
if (user.stats.getStat(STAT_BIO) > 32)
stat_bio = user.stats.getStat(STAT_BIO) * 0.8
if (user.stats.getStat(STAT_BIO) > 62)
stat_bio = 50
if (user.stats.getStat(STAT_COG) > 32)
stat_cog = user.stats.getStat(STAT_COG) * 0.8
if (user.stats.getStat(STAT_COG) > 62)
stat_cog = 50
tool.tool_qualities = list(QUALITY_CLAMPING = stat_bio, QUALITY_CAUTERIZING = stat_bio, QUALITY_RETRACTING = stat_bio, QUALITY_DRILLING = stat_cog, QUALITY_SAWING = stat_cog, QUALITY_BONE_SETTING = stat_bio, QUALITY_CUTTING = stat_cog, QUALITY_BONE_GRAFTING = stat_bio)
usr.put_in_active_hand(tool)
set_personal_cooldown(user)
return TRUE

//////////////////////////////////////////////////
///////// LEMNISCATE /////////
//////////////////////////////////////////////////
Expand Down

0 comments on commit 0224577

Please sign in to comment.