-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d31a2f4
commit 56e40a5
Showing
5 changed files
with
44 additions
and
6 deletions.
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
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
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,32 @@ | ||
|
||
/datum/action/cooldown/grenade | ||
name = "Grenade Spawn" | ||
desc = "Create a grenade that blows up after 15 seconds. Costs 10SP" | ||
icon_icon = 'icons/hud/screen_skills.dmi' | ||
button_icon_state = "smokedash" | ||
cooldown_time = 20 SECONDS | ||
|
||
/datum/action/cooldown/grenade/Trigger() | ||
. = ..() | ||
if(!.) | ||
return FALSE | ||
|
||
if (owner.stat == DEAD) | ||
return FALSE | ||
|
||
if(!ishuman(owner)) | ||
return FALSE | ||
|
||
var/mob/living/carbon/human/user = owner | ||
user.adjustSanityLoss(10) | ||
|
||
var/obj/item/grenade/r_corp/F = new /obj/item/grenade/r_corp/lcorp(get_turf(user)) | ||
F.explosion_damage_type = pick(RED_DAMAGE, BLACK_DAMAGE, WHITE_DAMAGE) | ||
F.explosion_damage = get_attribute_level(user, JUSTICE_ATTRIBUTE)*2 | ||
user.equip_in_one_of_slots(F, ITEM_SLOT_HANDS , qdel_on_fail = TRUE) | ||
StartCooldown() | ||
|
||
//This is only used by the grenade launcher ability | ||
/obj/item/grenade/r_corp/lcorp | ||
name = "l-corp grenade" | ||
desc = "An anti-abnormality grenade. It deals 90% less damage to humans." |
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