forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 130
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
d8935d0
commit cebab39
Showing
9 changed files
with
91 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/datum/modpack/example | ||
/// A string name for the modpack. Used for looking up other modpacks in init. | ||
name = "Горохострел" | ||
/// A string desc for the modpack. Can be used for modpack verb list as description. | ||
desc = "Добавляет горохострела и растение для его получения, которое можно мутировать из сойи" | ||
/// A string with authors of this modpack. | ||
author = "Chorden" |
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,12 @@ | ||
// BEGIN_INTERNALS | ||
// END_INTERNALS | ||
// BEGIN_FILE_DIR | ||
#define FILE_DIR . | ||
// END_FILE_DIR | ||
// BEGIN_PREFERENCES | ||
// END_PREFERENCES | ||
// BEGIN_INCLUDE | ||
#include "_peas_shooter.dm" | ||
#include "code\item\peas_shooter.dm" | ||
#include "code\plant\peas_shooter_plant.dm" | ||
// END_INCLUDE |
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,51 @@ | ||
/obj/item/gun/projectile/revolver/peas_shooter | ||
name = "Peas shooter" | ||
desc = "A living pea! Can shoot peas, does minor stamina damage and forces brainrotting!" | ||
icon = 'modular_ss220/peas_shooter/icons/items/peas_shooter.dmi' | ||
icon_state = "peas_shooter" | ||
item_state = "peas_shooter" | ||
lefthand_file = 'modular_ss220/peas_shooter/icons/inhands/peasshooter_lefthand.dmi' | ||
righthand_file = 'modular_ss220/peas_shooter/icons/inhands/peasshooter_righthand.dmi' | ||
w_class = WEIGHT_CLASS_NORMAL | ||
mag_type = /obj/item/ammo_box/magazine/peas_shooter | ||
|
||
/obj/item/ammo_box/magazine/peas_shooter | ||
name = "peacock shooter magazine" | ||
desc = "peacocker's mags for cockers" | ||
ammo_type = /obj/item/ammo_casing/peas_shooter | ||
max_ammo = 6 | ||
|
||
/obj/item/ammo_casing/peas_shooter | ||
name = "pea bullet" | ||
desc = "A bullet from pea, can't do any coherent damage and forces some brainrotting" | ||
projectile_type = /obj/item/projectile/bullet/midbullet_r/peas_shooter | ||
icon_state = "peashooter_bullet" | ||
|
||
/obj/item/projectile/bullet/midbullet_r/peas_shooter | ||
icon = 'modular_ss220/peas_shooter/icons/items/peas_shooter.dmi' | ||
item_state = "peashooter_bullet" | ||
icon_state = "peashooter_bullet" | ||
stamina = 5 | ||
damage_type = STAMINA | ||
|
||
/obj/item/projectile/bullet/midbullet_r/peas_shooter/on_hit(mob/H) | ||
. = ..() | ||
if(prob(30)) | ||
var/peas_talk = pick("Только не туда", "пацаны, я горошину ловлю", "хлоп-хлоп", "Это не суп", "МАГИСТРААААТ", "Я тучка-тучка", "Только не мартышки!") | ||
H.say(peas_talk) | ||
if(prob(30)) | ||
H.emote("scream") | ||
|
||
/datum/chemical_reaction/peas_bullet | ||
name = "Peas bullet creation" | ||
id = "pea_bullet_create" | ||
result = null | ||
required_reagents = list("soybeanoil" = 5, "ammonia" = 5, "aluminum" = 5) | ||
result_amount = 3 | ||
|
||
/datum/chemical_reaction/peas_bullet/on_reaction(datum/reagents/holder, created_volume) | ||
. = ..() | ||
var/loc = get_turf(holder.my_atom) | ||
for(var/i in 1 to created_volume) | ||
new /obj/item/ammo_casing/peas_shooter(loc) | ||
|
20 changes: 20 additions & 0 deletions
20
modular_ss220/peas_shooter/code/plant/peas_shooter_plant.dm
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,20 @@ | ||
/obj/item/seeds/soya/peas_shooter | ||
name = "pack of peas shooter seeds" | ||
desc = "These seeds grow into peas shooter" | ||
icon = 'modular_ss220/peas_shooter/icons/seeds/seed_soybean.dmi' | ||
icon_state = "seed-soybean" | ||
species = "peas shooter" | ||
plantname = "Peas Shooter Plants" | ||
icon_harvest = "soybean-harvest" | ||
product = /obj/item/gun/projectile/revolver/peas_shooter | ||
rarity = 20 | ||
reagents_add = list("plantmatter" = 0.2, "vitamin" = 0.4) | ||
mutatelist = list() | ||
potency = 20 | ||
yield = 1 | ||
production = 10 | ||
genes = list() | ||
|
||
/obj/item/seeds/soya | ||
mutatelist = list(/obj/item/seeds/soya/peas_shooter) | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.