Skip to content

Commit 713554e

Browse files
some suggested fixes
1 parent d3dd9bf commit 713554e

File tree

12 files changed

+55
-34
lines changed

12 files changed

+55
-34
lines changed

__DEFINES/atmos.dm

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,3 @@
9999
#define MOLES_O2STANDARD_ARCTIC MOLES_ARCTICSTANDARD*O2STANDARD //O2 standard value (21%)
100100
#define MOLES_N2STANDARD_ARCTIC MOLES_ARCTICSTANDARD*N2STANDARD //N2 standard value (79%)
101101

102-
103-
//jungle map.
104-
#define T_JUNGLE 323 // 121.8 f / 49.85 c. it's hot out there.
105-
#define JUNGLE_PRESSURE 3.25*ONE_ATMOSPHERE
106-
#define MOLES_JUNGLE_STD (JUNGLE_PRESSURE*CELL_VOLUME/(T_JUNGLE*R_IDEAL_GAS_EQUATION)) // pressure is 3.25 atm. enough to be noticable, but not enough to be dangerous.
107-
#define MOLES_JUNGLE_O2_STD (MOLES_JUNGLE_STD*0.5/JUNGLE_PRESSURE/ONE_ATMOSPHERE) // 0.5 atm PP. this is to remove the possability of oxygen toxicity. not that it matters, since spessmen has magic lungs.
108-
#define MOLES_JUNGLE_CO2_STD 5.0 // nevermind. we are capped at 5 moles, because simplemobs base deadly co2 levels on the raw co2 mole number rather than percentage or pressure. fun.. (0.02*MOLES_JUNGLE_STD) //2% co2. this would be survivable, but you'd notice a bit of dizziness and shortness of breath. again, magic spaceman lungs. this doesn't do any gameplay effects, but is for flavor.
109-
#define MOLES_JUNGLE_N2_STD (MOLES_JUNGLE_STD-MOLES_JUNGLE_O2_STD-MOLES_JUNGLE_CO2_STD) // backfill the rest with N2, because there's no other inert gas.

code/controllers/subsystem/lighting.dm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ var/list/lighting_update_lights_lowpriority = list() // List of lighting sources
3333
CURRENT_TICKLIMIT = (real_tick_limit - world.tick_usage)/3
3434
var/i = 0
3535

36-
//world.log << "lul: [lighting_update_lights.len] luc: [lighting_update_corners.len] luo: [lighting_update_overlays.len] lplul: [lighting_update_lights_lowpriority.len]"
3736

3837
for (i in 1 to lighting_update_lights.len)
3938
var/datum/light_source/L = lighting_update_lights[i]

code/datums/helper_datums/butchering.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
butcher_time = 10
289289

290290
/datum/butchering_product/frog_leg/poison
291-
result = /obj/item/weapon/reagent_containers/food/snacks/frog_leg/poison
291+
result = /obj/item/weapon/reagent_containers/food/snacks/meat/frog_leg_poison
292292

293293
/datum/butchering_product/frog_leg/desc_modifier()
294294
if(amount < 2)

code/datums/next_map.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
min_players = 30
182182

183183
/datum/next_map/junglestation
184-
name = "NT Colony Gamma-8"
184+
name = "Jungle Station" //NT Colony Gamma-8 - the trve name.
185185
path = "junglestation"
186186
min_players=0 //placeholders - adjust later.
187187
max_players=999

code/game/turfs/unsimulated/jungle.dm

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//jungle map.
2+
#define T_JUNGLE 323 // 121.8 f / 49.85 c. it's hot out there.
3+
#define JUNGLE_PRESSURE 3.25*ONE_ATMOSPHERE
4+
#define MOLES_JUNGLE_STD (JUNGLE_PRESSURE*CELL_VOLUME/(T_JUNGLE*R_IDEAL_GAS_EQUATION)) // pressure is 3.25 atm. enough to be noticable, but not enough to be dangerous.
5+
#define MOLES_JUNGLE_O2_STD (MOLES_JUNGLE_STD*0.5/JUNGLE_PRESSURE/ONE_ATMOSPHERE) // 0.5 atm PP. this is to remove the possability of oxygen toxicity. not that it matters, since spessmen has magic lungs.
6+
#define MOLES_JUNGLE_CO2_STD 5.0 // nevermind. we are capped at 5 moles, because simplemobs base deadly co2 levels on the raw co2 mole number rather than percentage or pressure. fun.. (0.02*MOLES_JUNGLE_STD) //2% co2. this would be survivable, but you'd notice a bit of dizziness and shortness of breath. again, magic spaceman lungs. this doesn't do any gameplay effects, but is for flavor.
7+
#define MOLES_JUNGLE_N2_STD (MOLES_JUNGLE_STD-MOLES_JUNGLE_O2_STD-MOLES_JUNGLE_CO2_STD) // backfill the rest with N2, because there's no other inert gas.
8+
9+
10+
11+
112

213
//floors
314

@@ -488,4 +499,11 @@ var/list/foliage_replacments=list(
488499

489500
/turf/unsimulated/floor/jungle/bedrock/ex_act(severity)
490501
return
491-
502+
503+
504+
#undef T_JUNGLE
505+
#undef JUNGLE_PRESSURE
506+
#undef MOLES_JUNGLE_STD
507+
#undef MOLES_JUNGLE_O2_STD
508+
#undef MOLES_JUNGLE_CO2_STD
509+
#undef MOLES_JUNGLE_N2_STD

code/modules/mob/living/simple_animal/friendly/lizard.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
icon_state = "poison_dart_frog"
127127
icon_living = "poison_dart_frog"
128128
icon_dead = "poison_dart_frog_dead"
129+
is_poisonous=TRUE
129130

130131
/mob/living/simple_animal/hostile/lizard/frog/poison/react_to_touch(mob/M)
131132
..()

code/modules/mob/living/simple_animal/hostile/bear.dm

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@
4545
var/stance_step = 0
4646

4747
faction = "russian"
48+
avoids_poisonous=TRUE
4849

49-
/mob/living/simple_animal/hostile/bear/ListTargets()
50-
var/list/l=..()
51-
for (var/i in l) //avoid the poison frogs.
52-
if(istype(i,/mob/living/simple_animal/hostile/lizard/frog/poison))
53-
l-=i
54-
return l
5550

5651
/mob/living/simple_animal/hostile/bear/Destroy()
5752
if(burger)

code/modules/mob/living/simple_animal/hostile/giant_spider/base_spider.dm

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
minbodytemp = 0
6565
held_items = list()
6666

67+
avoids_poisonous=TRUE
68+
6769
//keeping this here for later color matrix testing
6870
var/a_matrix_testing_override = FALSE
6971
var/a_11 = 1
@@ -132,14 +134,6 @@
132134
return list(/datum/butchering_product/spider_legs)
133135

134136

135-
/mob/living/simple_animal/hostile/giant_spider/ListTargets()
136-
var/list/l=..()
137-
for (var/i in l) //avoid the poison frogs.
138-
if(istype(i,/mob/living/simple_animal/hostile/lizard/frog/poison))
139-
l-=i
140-
return l
141-
142-
143137
//Can we actually attack a possible target?
144138
/mob/living/simple_animal/hostile/giant_spider/CanAttack(var/atom/the_target)
145139
if(istype(the_target,/obj/machinery/light))

code/modules/mob/living/simple_animal/hostile/hostile.dm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
var/list/target_rules = list()
3737

3838
var/can_ventcrawl = FALSE // If the mob can ventcrawl
39+
var/avoids_poisonous = FALSE
3940
var/mob/living/simple_animal/hostile/asteroid/hivelord/hivelord = null
4041

4142
/mob/living/simple_animal/hostile/New()
@@ -168,6 +169,12 @@
168169
return
169170

170171
/mob/living/simple_animal/hostile/proc/isValidTarget(var/atom/A)//we should have made that proc long ago instead of expanding CanAttack()
172+
if(istype(A,/mob/living/simple_animal))
173+
var/mob/living/simple_animal/SA=A
174+
if(SA.is_poisonous && avoids_poisonous )
175+
return FALSE
176+
if(SA.pacify_aura)
177+
return FALSE
171178
return TRUE
172179

173180
/mob/living/simple_animal/hostile/proc/PickTarget(var/list/Targets)//Step 3, pick amongst the possible, attackable targets

code/modules/mob/living/simple_animal/hostile/panther.dm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
failed_geometry_class=TRUE
1515
hates_fast_food=TRUE // likes fish.
1616

17-
/mob/living/simple_animal/hostile/bear/panther/ListTargets()
18-
var/list/l=..()
19-
for (var/i in l) //won't attack fellow cats.
20-
if(istype(i,/mob/living/simple_animal/cat) && !istype(i,/mob/living/simple_animal/cat/snek))
21-
l-=i
22-
return l
17+
18+
/mob/living/simple_animal/hostile/bear/panther/isValidTarget(var/atom/A)
19+
if(istype(A,/mob/living/simple_animal/cat) && !istype(A,/mob/living/simple_animal/cat/snek)) //won't attack fellow cats (like salem or runtime).
20+
return FALSE

code/modules/mob/living/simple_animal/simple_animal.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ var/global/list/animal_count = list() //Stores types, and amount of animals of t
110110
var/is_pet = FALSE //We're somebody's precious, precious pet.
111111

112112
var/pacify_aura = FALSE
113+
var/is_poisonous = FALSE //whether certian hostile mobs will avoid this.
113114

114115
var/blooded = TRUE //Until we give them proper vessels, this lets us know which animals should bleed and stuff
115116
var/acidimmune = 0 //A check for whether the mob doesn't take damage from acid reagents. Set to 0 by default

code/modules/reagents/reagent_containers/food/snacks.dm

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6407,13 +6407,29 @@
64076407
..()
64086408
reagents.add_reagent(NUTRIMENT, 6)
64096409

6410-
/obj/item/weapon/reagent_containers/food/snacks/frog_leg/poison
6410+
/obj/item/weapon/reagent_containers/food/snacks/meat/frog_leg_poison
6411+
name = "frog leg"
6412+
desc = "A thick, delicious legionnaire frog leg, its taste and texture resemble chicken."
6413+
icon_state = "frog_leg"
6414+
poisonsacs=/obj/item/weapon/reagent_containers/food/snacks/frog_poison_gland
64116415
bitesize=6 //bigger so you still eat it in 3 bites.
64126416

6413-
/obj/item/weapon/reagent_containers/food/snacks/frog_leg/poison/New()
6417+
/obj/item/weapon/reagent_containers/food/snacks/meat/frog_leg_poison/New()
6418+
..()
6419+
reagents.add_reagent(CARPOTOXIN, 6)
6420+
reagents.add_reagent(TOXIN, 6)
6421+
6422+
6423+
/obj/item/weapon/reagent_containers/food/snacks/frog_poison_gland
6424+
name = "poison glands"
6425+
desc = "The toxin-producing glands of a poison dart frog"
6426+
icon_state = "toxicspine"
6427+
/obj/item/weapon/reagent_containers/food/snacks/carppoisongland/New()
64146428
..()
64156429
reagents.add_reagent(CARPOTOXIN, 6)
64166430
reagents.add_reagent(TOXIN, 6)
6431+
bitesize = 12
6432+
64176433

64186434
/obj/item/weapon/reagent_containers/food/snacks/pie/welcomepie
64196435
name = "friendship pie"

0 commit comments

Comments
 (0)