-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dagoth Smite #501
Merged
Merged
Dagoth Smite #501
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0e9a033
initial pass of the dagoth smite
DexeeXI 0b7c468
second pass dagoth smite
DexeeXI cc54737
dropped a / like a dummy
DexeeXI 62dfdf1
order of operations
DexeeXI c493e2f
hmmm yes no more destroying gear
DexeeXI 9bb5ca6
code cleanup recommendations taken
DexeeXI 368fbaf
expansion adjustments
DexeeXI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,23 @@ | ||||||
// Dagoth Smite! (ported from Biblefart code) - Dexee | ||||||
/datum/smite/dagothsmite | ||||||
name = "Dagoth Smite" | ||||||
|
||||||
/datum/smite/dagothsmite/effect(client/user, mob/living/target) | ||||||
. = ..() | ||||||
if (!iscarbon(target)) | ||||||
to_chat(user, span_warning("This must be used on a carbon mob."), confidential = TRUE) | ||||||
return | ||||||
var/mob/living/carbon/human/Person = target | ||||||
var/turf/Location = get_turf(target) | ||||||
var/turf/T = get_step(get_step(Person, NORTH), NORTH) | ||||||
to_chat(Person,"<span class='ratvar'>What a grand and intoxicating innocence. Perish.</span>") | ||||||
T.Beam(Person, icon_state="lightning[rand(1,12)]", time = 15) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Use SECONDS procs for time related things. |
||||||
Person.unequip_everything() | ||||||
Person.Paralyze(15) | ||||||
playsound(target,'sound/magic/lightningshock.ogg', 50, 1) | ||||||
playsound(target,'monkestation/sound/misc/dagothgod.ogg', 80) | ||||||
Person.electrocution_animation(15) | ||||||
spawn(15) | ||||||
Person.gib() | ||||||
playsound(Location,'sound/effects/explosion3.ogg', 75, 1) | ||||||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use span procs(technically macros) wherever possible.