-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update waw.dmi Update caterpillar.dm Update tangle.dm Update teth.dm
- Loading branch information
1 parent
591c3c6
commit 7960c98
Showing
22 changed files
with
319 additions
and
14 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
127 changes: 127 additions & 0 deletions
127
code/modules/mob/living/simple_animal/abnormality/teth/tangle.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,127 @@ | ||
/mob/living/simple_animal/hostile/abnormality/tangle | ||
name = "Tangle" | ||
desc = "What seems to be a severed head laying in a tangle of hair." | ||
icon = 'ModularTegustation/Teguicons/32x32.dmi' | ||
icon_state = "tangle" | ||
icon_living = "tangle" | ||
portrait = "tangle" | ||
maxHealth = 1600 | ||
health = 1600 | ||
damage_coeff = list(BRUTE = 1, RED_DAMAGE = 1, WHITE_DAMAGE = 0.5, BLACK_DAMAGE = 1, PALE_DAMAGE = 2) | ||
melee_damage_lower = 0 //Doesn't attack | ||
melee_damage_upper = 0 | ||
rapid_melee = 2 | ||
melee_damage_type = WHITE_DAMAGE | ||
stat_attack = HARD_CRIT | ||
faction = list("hostile") | ||
can_breach = TRUE | ||
threat_level = TETH_LEVEL | ||
start_qliphoth = 2 | ||
work_chances = list( | ||
ABNORMALITY_WORK_INSTINCT = 80, | ||
ABNORMALITY_WORK_INSIGHT = list(50, 50, 40, 40, 40), | ||
ABNORMALITY_WORK_ATTACHMENT = list(50, 50, 40, 40, 40), | ||
ABNORMALITY_WORK_REPRESSION = list(50, 50, 40, 40, 40), | ||
) | ||
work_damage_amount = 5 | ||
work_damage_type = WHITE_DAMAGE | ||
ego_list = list( | ||
/datum/ego_datum/weapon/rapunzel, | ||
/datum/ego_datum/armor/rapunzel, | ||
) | ||
// gift_type = /datum/ego_gifts/rapunzel | ||
abnormality_origin = ABNORMALITY_ORIGIN_WONDERLAB | ||
|
||
var/chosen | ||
var/instinct_count | ||
var/list/hair_list = list() | ||
|
||
/mob/living/simple_animal/hostile/abnormality/tangle/Move() | ||
return FALSE | ||
|
||
/mob/living/simple_animal/hostile/abnormality/tangle/CanAttack(atom/the_target) | ||
return FALSE | ||
|
||
//Grab a list of all agents and picks one | ||
/mob/living/simple_animal/hostile/abnormality/tangle/Initialize() | ||
. = ..() | ||
var/list/potentialmarked = list() | ||
for(var/mob/living/carbon/human/L in GLOB.player_list) | ||
if(L.stat >= HARD_CRIT || L.sanity_lost || z != L.z) // Dead or in hard crit, insane, or on a different Z level. | ||
continue | ||
if(HAS_TRAIT(usr, TRAIT_WORK_FORBIDDEN)) //Don't get non agents | ||
continue | ||
potentialmarked += L | ||
if(potentialmarked.len == 1) //If there's only one of you, then don't do it. I'm not that evil. | ||
return | ||
chosen = pick(potentialmarked) | ||
|
||
|
||
|
||
/mob/living/simple_animal/hostile/abnormality/tangle/PostWorkEffect(mob/living/carbon/human/user, work_type, pe, work_time) | ||
// If your'e the chosen, lower | ||
if(user == chosen) | ||
datum_reference.qliphoth_change(-1) | ||
icon_state = "tangleawake" | ||
return | ||
|
||
if(work_type == ABNORMALITY_WORK_INSTINCT) | ||
instinct_count+=1 | ||
if((instinct_count==3) || (instinct_count == 6)) | ||
datum_reference.qliphoth_change(-1) | ||
icon_state = "tangleawake" | ||
|
||
/mob/living/simple_animal/hostile/abnormality/tangle/BreachEffect() | ||
..() | ||
icon_state = "tangled" | ||
icon = 'ModularTegustation/Teguicons/32x64.dmi' | ||
new /obj/structure/spreading/tangle_hair (src) | ||
|
||
|
||
/mob/living/simple_animal/hostile/abnormality/tangle/death() | ||
for(var/V in hair_list) | ||
QDEL_NULL(V) | ||
hair_list-=V | ||
..() | ||
|
||
|
||
// Hair turf | ||
/obj/structure/spreading/tangle_hair | ||
gender = PLURAL | ||
name = "blonde hair" | ||
desc = "a patch of blonde hair." | ||
icon = 'icons/effects/effects.dmi' | ||
icon_state = "tanglehair" | ||
anchored = TRUE | ||
density = FALSE | ||
layer = TURF_LAYER | ||
plane = FLOOR_PLANE | ||
max_integrity = 20 | ||
base_icon_state = "tanglehair" | ||
var/mob/living/simple_animal/hostile/abnormality/tangle/connected_abno | ||
|
||
/obj/structure/spreading/tangle_hair/Initialize() | ||
. = ..() | ||
|
||
//Stolen from Snow White's. Thanks Para! | ||
if(!connected_abno) | ||
connected_abno = locate(/mob/living/simple_animal/hostile/abnormality/tangle) in GLOB.abnormality_mob_list | ||
if(connected_abno) | ||
connected_abno.hair_list += src | ||
expand() | ||
|
||
|
||
/obj/structure/spreading/tangle_hair/expand() | ||
addtimer(CALLBACK(src, PROC_REF(expand)), 5 SECONDS) | ||
// if(connected_abno.hair_list.len>=150) | ||
// return | ||
..() | ||
|
||
/obj/structure/spreading/tangle_hair/Crossed(atom/movable/AM) | ||
. = ..() | ||
if(ishuman(AM)) | ||
var/mob/living/carbon/human/H = AM | ||
H.apply_damage(1, WHITE_DAMAGE, null, H.run_armor_check(null, RED_DAMAGE), spread_damage = TRUE) | ||
if(prob(10)) | ||
H.Immobilize(5) | ||
to_chat(H, span_warning("You get caught in the hair!")) |
121 changes: 121 additions & 0 deletions
121
code/modules/mob/living/simple_animal/abnormality/waw/caterpillar.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,121 @@ | ||
/mob/living/simple_animal/hostile/abnormality/caterpillar | ||
name = "Hookah Caterpillar" | ||
desc = "A pathetic bug sitting on a leaf." | ||
icon = 'ModularTegustation/Teguicons/64x64.dmi' | ||
icon_state = "caterpillar" | ||
icon_living = "caterpillar" | ||
portrait = "caterpillar" | ||
pixel_x = -16 | ||
base_pixel_x = -16 | ||
maxHealth = 2300 | ||
health = 2300 | ||
ranged = TRUE | ||
attack_verb_continuous = "scolds" | ||
attack_verb_simple = "scold" | ||
stat_attack = HARD_CRIT | ||
melee_damage_lower = 11 | ||
melee_damage_upper = 12 | ||
damage_coeff = list(BRUTE = 1, RED_DAMAGE = 1.5, WHITE_DAMAGE = 1.3, BLACK_DAMAGE = 0.5, PALE_DAMAGE = 0) | ||
speak_emote = list("flutters") | ||
|
||
can_breach = TRUE | ||
threat_level = WAW_LEVEL | ||
faction = list("neutral", "hostile") | ||
start_qliphoth = 1 | ||
work_chances = list( | ||
ABNORMALITY_WORK_INSTINCT = 75, | ||
ABNORMALITY_WORK_INSIGHT = 75, | ||
ABNORMALITY_WORK_ATTACHMENT = 75, | ||
ABNORMALITY_WORK_REPRESSION = list(20, 20, 20, 20, 65), | ||
) | ||
max_boxes = 18 | ||
work_damage_amount = 5 | ||
work_damage_type = PALE_DAMAGE | ||
patrol_cooldown_time = 3 SECONDS | ||
|
||
ego_list = list( | ||
/datum/ego_datum/weapon/havana, | ||
/datum/ego_datum/armor/havana, | ||
) | ||
// gift_type = /datum/ego_gifts/caterpillar | ||
abnormality_origin = ABNORMALITY_ORIGIN_WONDERLAB | ||
|
||
var/darts_smoked //how many times you didnt' work repression | ||
var/can_counter = TRUE | ||
|
||
//Set a smoker timer for 15 seconds | ||
/mob/living/simple_animal/hostile/abnormality/caterpillar/BreachEffect() | ||
icon = 'ModularTegustation/Teguicons/64x96.dmi' | ||
addtimer(CALLBACK(src, PROC_REF(Smoke_Timer)), 15 SECONDS) | ||
..() | ||
|
||
/mob/living/simple_animal/hostile/abnormality/caterpillar/proc/Smoke_Timer() | ||
var/datum/effect_system/smoke_spread/pale/S = new | ||
S.set_up(8, get_turf(src)) //Make the smoke bigger | ||
S.start() | ||
qdel(S) | ||
addtimer(CALLBACK(src, PROC_REF(Smoke_Timer)), 15 SECONDS) | ||
|
||
|
||
//Counter shit if you get hit by a bullet, we want to keep them either dodging in and out or firing through the gas | ||
/mob/living/simple_animal/hostile/abnormality/caterpillar/proc/Counter_Timer() | ||
can_counter = TRUE | ||
|
||
/mob/living/simple_animal/hostile/abnormality/caterpillar/bullet_act(obj/projectile/P) | ||
if(!can_counter) | ||
return | ||
can_counter = FALSE | ||
var/datum/effect_system/smoke_spread/pale/S = new | ||
S.set_up(8, get_turf(src)) //Make the smoke bigger | ||
S.start() | ||
qdel(S) | ||
addtimer(CALLBACK(src, PROC_REF(Counter_Timer)), 15 SECONDS) | ||
|
||
|
||
|
||
/mob/living/simple_animal/hostile/abnormality/caterpillar/PostWorkEffect(mob/living/carbon/human/user, work_type, pe, work_time) | ||
if(work_type != ABNORMALITY_WORK_REPRESSION) | ||
darts_smoked++ //Smoke a fat stoogie if it's not repression | ||
|
||
if(darts_smoked<8) | ||
work_damage_amount+=2 | ||
max_boxes+=2 | ||
|
||
if(darts_smoked>=3) | ||
var/datum/effect_system/smoke_spread/pale/S = new | ||
S.set_up(4, get_turf(src)) //Make the smoke bigger | ||
S.start() | ||
qdel(S) | ||
|
||
if(darts_smoked>=5) | ||
if(prob(50)) | ||
datum_reference.qliphoth_change(-1) | ||
|
||
|
||
|
||
///////////////////////////////////////////// | ||
// Bad smoke | ||
///////////////////////////////////////////// | ||
|
||
/obj/effect/particle_effect/smoke/pale | ||
icon_state = "palesmoke" | ||
lifetime = 8 | ||
|
||
//Bypasses smoke detection | ||
/obj/effect/particle_effect/smoke/pale/smoke_mob(mob/living/carbon/C) | ||
if(!istype(C)) | ||
return FALSE | ||
if(lifetime<1) | ||
return FALSE | ||
if(C.smoke_delay) | ||
return FALSE | ||
|
||
C.smoke_delay++ | ||
addtimer(CALLBACK(src, PROC_REF(remove_smoke_delay), C), 10) | ||
C.deal_damage(27, PALE_DAMAGE) | ||
to_chat(C, span_danger("IT BURNS!")) | ||
C.emote("scream") | ||
return TRUE | ||
|
||
/datum/effect_system/smoke_spread/pale | ||
effect_type = /obj/effect/particle_effect/smoke/pale |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.