Skip to content

Commit

Permalink
Spacemandmm fixes (shiptest-ss13#799)
Browse files Browse the repository at this point in the history
* do it

Signed-off-by: Matthew <[email protected]>

* little more detail here

Signed-off-by: Matthew <[email protected]>

* put it in the wrong dmi

Signed-off-by: Matthew <[email protected]>

* Update code/game/objects/items/tools/chisel.dm

Copy paste gp BRRR

Co-authored-by: PrefabQuasar <[email protected]>

* resolve some issues that spacemandmm is complaining about because got fucking damn is it annoying when I am trying to code something and I get nonstop errors about stupid issues. also did you know that people though rand was exclusive on the high end? its actually not, both params are inclusive, which is stupid since this is different to almost every other god damn language

Signed-off-by: Matthew <[email protected]>

Co-authored-by: PrefabQuasar <[email protected]>
  • Loading branch information
ZephyrTFA and PrefabQuasar authored Feb 10, 2022
1 parent 4406697 commit 5e29827
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions code/__HELPERS/type2type.dm
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,9 @@ GLOBAL_LIST_INIT(modulo_angle_to_dir, list(NORTH,NORTHEAST,EAST,SOUTHEAST,SOUTH,
switch(child)
if(/datum)
return null
if(/obj || /mob)
if(/obj, /mob)
return /atom/movable
if(/area || /turf)
if(/area, /turf)
return /atom
else
return /datum
Expand Down
2 changes: 1 addition & 1 deletion code/datums/brain_damage/severe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
return

var/high_stress = (stress > 60) //things get psychosomatic from here on
switch(rand(1,6))
switch(rand(1,5))
if(1)
if(!high_stress)
to_chat(owner, "<span class='warning'>You feel sick...</span>")
Expand Down
2 changes: 1 addition & 1 deletion code/datums/diseases/dna_spread.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
return

switch(stage)
if(2 || 3) //Pretend to be a cold and give time to spread.
if(2, 3) //Pretend to be a cold and give time to spread.
if(prob(8))
affected_mob.emote("sneeze")
if(prob(8))
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/requests_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ GLOBAL_LIST_EMPTY(req_console_ckey_departments)
radio_freq = FREQ_ENGINEERING
if("security")
radio_freq = FREQ_SECURITY
if("cargobay" || "mining")
if("cargobay", "mining")
radio_freq = FREQ_SUPPLY

var/datum/signal/subspace/messaging/rc/signal = new(src, list(
Expand Down
4 changes: 2 additions & 2 deletions code/modules/atmospherics/machinery/pipes/layermanifold.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@

/obj/machinery/atmospherics/pipe/layer_manifold/SetInitDirections()
switch(dir)
if(NORTH || SOUTH)
if(NORTH, SOUTH)
initialize_directions = NORTH|SOUTH
if(EAST || WEST)
if(EAST, WEST)
initialize_directions = EAST|WEST

/obj/machinery/atmospherics/pipe/layer_manifold/isConnectable(obj/machinery/atmospherics/target, given_layer)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
switch(atk_verb)//this code is really stupid but some genius apparently made "claw" and "slash" two attack types but also the same one so it's needed i guess
if(ATTACK_EFFECT_KICK)
user.do_attack_animation(target, ATTACK_EFFECT_KICK)
if(ATTACK_EFFECT_SLASH || ATTACK_EFFECT_CLAW)//smh
if(ATTACK_EFFECT_SLASH, ATTACK_EFFECT_CLAW)//smh
user.do_attack_animation(target, ATTACK_EFFECT_CLAW)
if(ATTACK_EFFECT_SMASH)
user.do_attack_animation(target, ATTACK_EFFECT_SMASH)
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/mob_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
newletter += "[newletter]"
if(20)
newletter += "[newletter][newletter]"
else
// do nothing
. += "[newletter]"
return sanitize(.)

Expand Down Expand Up @@ -150,6 +152,8 @@
newletter = "nglu"
if(5)
newletter = "glor"
else
// do nothing
. += newletter
return sanitize(.)

Expand Down
4 changes: 2 additions & 2 deletions code/modules/power/singularity/singularity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@
var/dir2 = 0
var/dir3 = 0
switch(direction)
if(NORTH||SOUTH)
if(NORTH, SOUTH)
dir2 = 4
dir3 = 8
if(EAST||WEST)
if(EAST, WEST)
dir2 = 1
dir3 = 2
var/turf/T2 = T
Expand Down
2 changes: 1 addition & 1 deletion code/modules/ruins/lavalandruin_code/elephantgraveyard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
/obj/structure/closet/crate/grave/PopulateContents() //GRAVEROBBING IS NOW A FEATURE
..()
new /obj/effect/decal/remains/human/grave(src)
switch(rand(1,8))
switch(rand(1,7))
if(1)
new /obj/item/coin/gold(src)
new /obj/item/storage/wallet(src)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/surgery/advanced/lobotomy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
target.cure_all_traumas(TRAUMA_RESILIENCE_LOBOTOMY)
if(target.mind && target.mind.has_antag_datum(/datum/antagonist/brainwashed))
target.mind.remove_antag_datum(/datum/antagonist/brainwashed)
switch(rand(1,4))//Now let's see what hopefully-not-important part of the brain we cut off
switch(rand(1,3))//Now let's see what hopefully-not-important part of the brain we cut off
if(1)
target.gain_trauma_type(BRAIN_TRAUMA_MILD, TRAUMA_RESILIENCE_MAGIC)
experience_given = MEDICAL_SKILL_ADVANCED*0.9
Expand Down
2 changes: 2 additions & 0 deletions code/modules/vending/_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C
freebie(user, 2)
if(16 to 25)
freebie(user, 1)
if(26 to 75)
return // 50% chance to not do anything
if(76 to 90)
tilt(user)
if(91 to 100)
Expand Down

0 comments on commit 5e29827

Please sign in to comment.