This commit is contained in:
SandPoot
2021-03-09 16:56:09 -03:00
7 changed files with 26 additions and 7 deletions
@@ -415,7 +415,7 @@ Example config:
while(recent_round)
adjustment += repeated_mode_adjust[recent_round]
recent_round = SSpersistence.saved_modes.Find(name,recent_round+1,0)
probability *= ((100-adjustment)/100)
probability *= max(0,((100-adjustment)/100))
runnable_storytellers[S] = probability
return runnable_storytellers
@@ -448,7 +448,7 @@ Example config:
while(recent_round)
adjustment += repeated_mode_adjust[recent_round]
recent_round = SSpersistence.saved_modes.Find(M.config_tag,recent_round+1,0)
final_weight *= ((100-adjustment)/100)
final_weight *= max(0,((100-adjustment)/100))
runnable_modes[M] = final_weight
return runnable_modes
@@ -106,6 +106,7 @@
for(var/i in 1 to 3)
if(config_tag in saved_dynamic_rules[i])
weight_mult -= (repeated_mode_adjust[i]/100)
weight_mult = max(0,weight_mult)
if(config_tag in costs)
cost = costs[config_tag]
if(config_tag in requirementses)
@@ -73,9 +73,14 @@
icon_state = "breaker_drop"
/obj/structure/femur_breaker/proc/damage_leg(mob/living/carbon/human/H)
H.emote("scream")
H.apply_damage(150, BRUTE, pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG))
H.adjustBruteLoss(rand(5,20) + (max(0, H.health))) //Make absolutely sure they end up in crit, so that they can succumb if they wish.
var/where_we_snappin_boys = pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG)
H.emote("scream")
H.apply_damage(150, BRUTE, where_we_snappin_boys)
var/obj/item/bodypart/cracka = H.get_bodypart(where_we_snappin_boys)
if(cracka)
var/datum/wound/blunt/critical/cracka_lackin = new
cracka_lackin.apply_wound(cracka)
H.adjustBruteLoss(rand(5,20) + (max(0, H.health))) //Make absolutely sure they end up in crit, so that they can succumb if they wish.
/obj/structure/femur_breaker/proc/raise_slat()
slat_status = BREAKER_SLAT_RAISED
@@ -492,7 +492,9 @@
playsound(user.loc,'sound/weapons/pierce.ogg', rand(10,50), 1)
var/obj/item/trash/can/crushed_can = new /obj/item/trash/can(user.loc)
crushed_can.icon_state = icon_state
qdel(src)
M.dropItemToGround(src)
M.put_in_active_hand(crushed_can)
return qdel(src)
..()
/obj/item/reagent_containers/food/drinks/soda_cans/attack_self(mob/user)
+4 -1
View File
@@ -66,7 +66,10 @@
var/energy_transfer = delta_temperature*hot_air_heat_capacity*cold_air_heat_capacity/(hot_air_heat_capacity+cold_air_heat_capacity)
var/heat = energy_transfer*(1-efficiency)
lastgen += LOGISTIC_FUNCTION(500000,0.0009,delta_temperature,10000)
if(delta_temperature < 16800) // second point where derivative of below function = 1
lastgen += LOGISTIC_FUNCTION(500000,0.0009,delta_temperature,10000)
else
lastgen += delta_temperature + 482102 // value of above function at 16800, or very nearly so
hot_air.set_temperature(hot_air.return_temperature() - energy_transfer/hot_air_heat_capacity)
cold_air.set_temperature(cold_air.return_temperature() + heat/cold_air_heat_capacity)
@@ -0,0 +1,4 @@
author: "Putnam3145"
delete-after: True
changes:
- balance: "uncapped TEG power, buffing high-temp TEGs"
@@ -0,0 +1,4 @@
author: "Hatterhat"
delete-after: True
changes:
- rscadd: "The femur breaker now actually breaks legs by applying a compound fracture."