forked from vlggms/lobotomy-corp13
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update part 1 * Update _templates.dm * Update axe.dm * Update knife.dm
- Loading branch information
1 parent
9462801
commit ab8d0ff
Showing
6 changed files
with
73 additions
and
43 deletions.
There are no files selected for viewing
Binary file not shown.
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
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,33 @@ | ||
//has a cleave attack. | ||
/obj/item/ego_weapon/template/axe | ||
name = "axe template" | ||
desc = "A blank axe workshop template." | ||
special = "Use this weapon in hand to charge a cleave attack." | ||
icon_state = "axetemplate" | ||
force = 30 | ||
attack_speed = 1.5 | ||
hitsound = 'sound/abnormalities/woodsman/woodsman_attack.ogg' | ||
attack_verb_continuous = list("attacks", "slashes", "cleaves", "slices", "cuts") | ||
attack_verb_simple = list("attack", "slash", "cleave", "slice", "cut") | ||
|
||
finishedicon = list("finishedaxe") | ||
finishedname = list("hand axe", "axe", "battleaxe") | ||
finisheddesc = "A finished axe, ready for use." | ||
var/finishedforce | ||
var/charged | ||
|
||
/obj/item/ego_weapon/template/axe/attack_self(mob/user) | ||
if(!active || charged) | ||
return | ||
if(!finishedforce) | ||
finishedforce = force | ||
|
||
if(do_after(user, attack_speed*10)) | ||
charged = TRUE | ||
force*=1.2 | ||
to_chat(user, "<span class='info'>You charge a cleave, and your next attack will deal bonus damage.</span>") | ||
|
||
/obj/item/ego_weapon/template/axe/attack(mob/user) | ||
..() | ||
if(finishedforce && finishedforce!=force) | ||
force = finishedforce |
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
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,31 @@ | ||
//Has a dodge ability | ||
/obj/item/ego_weapon/template/knife | ||
name = "knife template" | ||
desc = "A blank knife workshop template." | ||
special = "Use this weapon in hand to perform a dodgeroll." | ||
icon_state = "knifetemplate" | ||
force = 18 | ||
attack_speed = 0.7 | ||
hitsound = 'sound/weapons/bladeslice.ogg' | ||
attack_verb_continuous = list("attacks", "slashes", "stabs", "slices", "tears", "lacerates", "rips", "dices", "cuts") | ||
attack_verb_simple = list("attack", "slash", "stab", "slice", "tear", "lacerate", "rip", "dice", "cut") | ||
|
||
finishedicon = list("finishedknife","finishedstiletto") | ||
finishedname = list("dagger", "knife", "mail breaker") | ||
finisheddesc = "A finished knife, ready for use." | ||
var/dodgelanding | ||
|
||
/obj/item/ego_weapon/template/knife/attack_self(mob/living/carbon/user) | ||
if(!active) | ||
to_chat(user, "<span class='notice'>This weapon is unfinished!</span>") | ||
return | ||
if(user.dir == 1) | ||
dodgelanding = locate(user.x, user.y + 5, user.z) | ||
if(user.dir == 2) | ||
dodgelanding = locate(user.x, user.y - 5, user.z) | ||
if(user.dir == 4) | ||
dodgelanding = locate(user.x + 5, user.y, user.z) | ||
if(user.dir == 8) | ||
dodgelanding = locate(user.x - 5, user.y, user.z) | ||
user.adjustStaminaLoss(10, TRUE, TRUE) | ||
user.throw_at(dodgelanding, 3, 2, spin = TRUE) |
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