Skip to content

Commit

Permalink
SpacemanDMM Sanity (shiptest-ss13#12)
Browse files Browse the repository at this point in the history
* SpacemanDMM Sanity
fixes preceding slashes (or lack therof), make dmdoc use the typepaths rather than names, and a few disambiguations.

* trigger spacemandmm reparse in CBT 'Build All' task (#58061)

* Close every issue made by ZeWaka (#58701)

sure whatever i totally know what im doing

* Ensure consistent working directory in build.bat (#59193)

* Deletes duplicate export property (#58212)

* Simplified Node Bootstrap mk. II (#56797)

Script tools/bootstrap/node_.ps1 will now only download a single node.exe file (32-bit variant) and nothing more.
Since we don't need to unzip, we removed a dependency on a .NET component.
Removed logging, because TGS4 already logs stdout/err, while all this fancy output redirection breaks on older PowerShell versions.
node.bat uses a system-wide node exe if available
CBT will not mislead users by printing things like "missing tgstation.dmb"

Co-authored-by: William Wallace <[email protected]>
Co-authored-by: tralezab <[email protected]>
Co-authored-by: AnturK <[email protected]>
Co-authored-by: ZeWaka <[email protected]>
Co-authored-by: Aleksej Komarov <[email protected]>
  • Loading branch information
6 people authored May 24, 2021
1 parent 839bb6d commit 6b3ce37
Show file tree
Hide file tree
Showing 44 changed files with 120 additions and 107 deletions.
11 changes: 10 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"$dreammaker",
"$eslint-stylish"
],
"group": "build",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": "dm: reparse",
"label": "Build All"
},
{
Expand All @@ -34,6 +38,11 @@
],
"group": "build",
"label": "tgui: build"
},
{
"command": "${command:dreammaker.reparse}",
"group": "build",
"label": "dm: reparse"
}
]
}
2 changes: 1 addition & 1 deletion Build.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@call tools\build\build
@call "%~dp0\tools\build\build"
@pause
7 changes: 7 additions & 0 deletions SpacemanDMM.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
[langserver]
dreamchecker = true

[code_standards]
disallow_relative_type_definitions = true
disallow_relative_proc_definitions = true

[dmdoc]
use_typepath_names = true
2 changes: 1 addition & 1 deletion code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ B --><-- A
return closest_atom


proc/pick_closest_path(value, list/matches = get_fancy_list_of_atom_types())
/proc/pick_closest_path(value, list/matches = get_fancy_list_of_atom_types())
if (value == FALSE) //nothing should be calling us with a number, so this is safe
value = input("Enter type to find (blank for all, cancel to cancel)", "Search for type") as null|text
if (isnull(value))
Expand Down
4 changes: 2 additions & 2 deletions code/datums/traits/good.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
lose_text = "<span class='danger'>You feel isolated from others.</span>"
medical_record_text = "Patient is highly perceptive of and sensitive to social cues, or may possibly have ESP. Further testing needed."

datum/quirk/fan_clown
/datum/quirk/fan_clown
name = "Clown Fan"
desc = "You enjoy clown antics and get a mood boost from wearing your clown pin."
value = 1
Expand All @@ -81,7 +81,7 @@ datum/quirk/fan_clown
var/datum/atom_hud/fan = GLOB.huds[DATA_HUD_FAN]
fan.add_hud_to(H)

datum/quirk/fan_mime
/datum/quirk/fan_mime
name = "Mime Fan"
desc = "You enjoy mime antics and get a mood boost from wearing your mime pin."
value = 1
Expand Down
2 changes: 1 addition & 1 deletion code/datums/traits/neutral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
var/datum/species/species = H.dna.species
if(initial(species.liked_food) & MEAT)
species.liked_food |= MEAT
if(!initial(species.disliked_food) & MEAT)
if(!(initial(species.disliked_food) & MEAT))
species.disliked_food &= ~MEAT

/datum/quirk/snob
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/doors/airlock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@
else
. += "It looks very robust."

if(issilicon(user) && (!machine_stat & BROKEN))
if(issilicon(user) && !(machine_stat & BROKEN))
. += "<span class='notice'>Shift-click [src] to [ density ? "open" : "close"] it.</span>"
. += "<span class='notice'>Ctrl-click [src] to [ locked ? "raise" : "drop"] its bolts.</span>"
. += "<span class='notice'>Alt-click [src] to [ secondsElectrified ? "un-electrify" : "permanently electrify"] it.</span>"
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/hologram.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Possible to do for anyone motivated enough:
desc = "It's a floor-mounted device for projecting holographic images. This one will refuse to auto-connect incoming calls."
secure = TRUE

obj/machinery/holopad/secure/Initialize()
/obj/machinery/holopad/secure/Initialize()
. = ..()
var/obj/item/circuitboard/machine/holopad/board = circuit
board.secure = TRUE
Expand Down
2 changes: 1 addition & 1 deletion code/game/mecha/combat/durand.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Expects a turf. Returns true if the attack should be blocked, false if not.*/
. = TRUE
return

obj/mecha/combat/durand/attack_generic(mob/user, damage_amount = 0, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, armor_penetration = 0)
/obj/mecha/combat/durand/attack_generic(mob/user, damage_amount = 0, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, armor_penetration = 0)
if(defense_check(user.loc))
log_message("Attack absorbed by defense field. Attacker - [user].", LOG_MECHA, color="orange")
shield.attack_generic(user, damage_amount, damage_type, damage_flag, sound_effect, armor_penetration)
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/dice.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
/obj/item/dice/d6
name = "d6"

obj/item/dice/d6/ebony
/obj/item/dice/d6/ebony
name = "ebony die"
desc = "A die with six sides made of dense black wood. It feels cold and heavy in your hand."
icon_state = "de6"
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/grenades/festive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
/obj/item/grenade/firecracker/fire_act(exposed_temperature, exposed_volume)
prime()

obj/item/grenade/firecracker/wirecutter_act(mob/living/user, obj/item/I)
/obj/item/grenade/firecracker/wirecutter_act(mob/living/user, obj/item/I)
if(active)
return
if(det_time)
Expand All @@ -96,7 +96,7 @@ obj/item/grenade/firecracker/wirecutter_act(mob/living/user, obj/item/I)
else
to_chat(user, "<span class='danger'>You've already removed all of the fuse!</span>")

obj/item/grenade/firecracker/preprime(mob/user, delayoverride, msg = TRUE, volume = 80)
/obj/item/grenade/firecracker/preprime(mob/user, delayoverride, msg = TRUE, volume = 80)
var/turf/T = get_turf(src)
log_grenade(user, T)
if(user)
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/tables_racks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
to_chat(user, "<span class='danger'>Throwing [pushed_mob] onto the table might hurt them!</span>")
return
var/added_passtable = FALSE
if(!pushed_mob.pass_flags & PASSTABLE)
if(!(pushed_mob.pass_flags & PASSTABLE))
added_passtable = TRUE
pushed_mob.pass_flags |= PASSTABLE
pushed_mob.Move(src.loc)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/verbs/one_click_antag.dm
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
chosen_candidate.client.prefs.copy_to(ERTOperative)
ERTOperative.key = chosen_candidate.key

if(ertemplate.enforce_human || !ERTOperative.dna.species.changesource_flags & ERT_SPAWN) // Don't want any exploding plasmemes
if(ertemplate.enforce_human || !(ERTOperative.dna.species.changesource_flags & ERT_SPAWN)) // Don't want any exploding plasmemes
ERTOperative.set_species(/datum/species/human)

//Give antag datum
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/_common/antag_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ GLOBAL_LIST_EMPTY(antagonists)
show_name_in_check_antagonists = TRUE //They're all different
var/datum/team/custom_team

datum/antagonist/custom/create_team(datum/team/team)
/datum/antagonist/custom/create_team(datum/team/team)
custom_team = team

/datum/antagonist/custom/get_team()
Expand Down
6 changes: 3 additions & 3 deletions code/modules/atmospherics/gasmixtures/reactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -246,18 +246,18 @@
return cached_results["fire"] ? REACTING : NO_REACTION

//freon reaction (is not a fire yet)
datum/gas_reaction/freonfire
/datum/gas_reaction/freonfire
priority = -3
name = "Freon combustion"
id = "freonfire"

datum/gas_reaction/freonfire/init_reqs()
/datum/gas_reaction/freonfire/init_reqs()
min_requirements = list(
/datum/gas/oxygen = MINIMUM_MOLE_COUNT,
/datum/gas/freon = MINIMUM_MOLE_COUNT
)

datum/gas_reaction/freonfire/react(datum/gas_mixture/air, datum/holder)
/datum/gas_reaction/freonfire/react(datum/gas_mixture/air, datum/holder)
var/energy_released = 0
var/old_heat_capacity = air.heat_capacity()
var/temperature = air.return_temperature()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/client/preferences_toggles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ TOGGLE_CHECKBOX(/datum/verbs/menu/Settings, listen_ooc)()
return C.prefs.chat_toggles & CHAT_OOC

//BeginWS Edit
TOGGLE_CHECKBOX(datum/verbs/menu/settings, listen_looc)()
TOGGLE_CHECKBOX(/datum/verbs/menu/settings, listen_looc)()
set name = "Show/Hide LOOC"
set category = "Preferences"
set desc = "Toggles seeing Local Out Of Character chat"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)
result = /obj/item/reagent_containers/food/snacks/donut/chaos

datum/crafting_recipe/food/donut/meat
/datum/crafting_recipe/food/donut/meat
time = 15
name = "Meat donut"
reqs = list(
Expand Down
14 changes: 7 additions & 7 deletions code/modules/mining/aux_base_camera.dm
Original file line number Diff line number Diff line change
Expand Up @@ -202,27 +202,27 @@
name = "Select Airlock Type"
button_icon_state = "airlock_select"

datum/action/innate/aux_base/airlock_type/Activate()
/datum/action/innate/aux_base/airlock_type/Activate()
if(..())
return

B.RCD.change_airlock_setting()


datum/action/innate/aux_base/window_type
/datum/action/innate/aux_base/window_type
name = "Select Window Type"
button_icon_state = "window_select"

datum/action/innate/aux_base/window_type/Activate()
/datum/action/innate/aux_base/window_type/Activate()
if(..())
return
B.RCD.toggle_window_type()

datum/action/innate/aux_base/place_fan
/datum/action/innate/aux_base/place_fan
name = "Place Tiny Fan"
button_icon_state = "build_fan"

datum/action/innate/aux_base/place_fan/Activate()
/datum/action/innate/aux_base/place_fan/Activate()
if(..())
return

Expand All @@ -244,11 +244,11 @@ datum/action/innate/aux_base/place_fan/Activate()
to_chat(owner, "<span class='notice'>Tiny fan placed. [B.fans_remaining] remaining.</span>")
playsound(fan_turf, 'sound/machines/click.ogg', 50, TRUE)

datum/action/innate/aux_base/install_turret
/datum/action/innate/aux_base/install_turret
name = "Install Plasma Anti-Wildlife Turret"
button_icon_state = "build_turret"

datum/action/innate/aux_base/install_turret/Activate()
/datum/action/innate/aux_base/install_turret/Activate()
if(..())
return

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/species_types/IPC.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
else if(MUTCOLORS in C.dna.species.species_traits)
C.dna.species.species_traits -= MUTCOLORS

datum/species/ipc/on_species_loss(mob/living/carbon/C)
/datum/species/ipc/on_species_loss(mob/living/carbon/C)
. = ..()
if(change_screen)
change_screen.Remove(C)
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/simple_animal/hostile/bear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
to_chat(user, "<span class='info'>You strap the armor plating to [A] and sharpen [A.p_their()] claws with the nail filer. This was a great idea.</span>")
qdel(src)

mob/living/simple_animal/hostile/bear/butter //The mighty companion to Cak. Several functions used from it.
/mob/living/simple_animal/hostile/bear/butter //The mighty companion to Cak. Several functions used from it.
name = "Terrygold"
icon_state = "butterbear"
icon_living = "butterbear"
Expand Down Expand Up @@ -168,7 +168,7 @@ mob/living/simple_animal/hostile/bear/butter //The mighty companion to Cak. Seve
to_chat(src, "<span class='notice'>Your name is now <b>\"new_name\"</b>!</span>")
name = new_name

mob/living/simple_animal/hostile/bear/butter/AttackingTarget() //Makes some attacks by the butter bear slip those who dare cross its path.
/mob/living/simple_animal/hostile/bear/butter/AttackingTarget() //Makes some attacks by the butter bear slip those who dare cross its path.
if(isliving(target))
var/mob/living/L = target
if((L.body_position == STANDING_UP))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
name = "Wrap"
panel = "Spider"
active = FALSE
datum/action/spell_action/action = null
action = null
desc = "Wrap something or someone in a cocoon. If it's a living being, you'll also consume them, allowing you to lay eggs."
ranged_mousepointer = 'icons/effects/mouse_pointers/wrap_target.dmi'
action_icon = 'icons/mob/actions/actions_animal.dmi'
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hostile/hostile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
DestroyObjectsInDirection(direction)


mob/living/simple_animal/hostile/proc/DestroySurroundings() // for use with megafauna destroying everything around them
/mob/living/simple_animal/hostile/proc/DestroySurroundings() // for use with megafauna destroying everything around them
if(environment_smash)
EscapeConfinement()
for(var/dir in GLOB.cardinals)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ Difficulty: Medium
else
animate(src, pixel_x = -16, pixel_z = 0, time = 5)

obj/effect/temp_visual/fireball
/obj/effect/temp_visual/fireball
icon = 'icons/obj/wizard.dmi'
icon_state = "fireball"
name = "fireball"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
* Arguments:
* * turf/T - The turf to trigger the effects on.
*/
mob/living/simple_animal/hostile/space_dragon/proc/dragon_fire_line(turf/T)
/mob/living/simple_animal/hostile/space_dragon/proc/dragon_fire_line(turf/T)
var/list/hit_list = list()
hit_list += src
new /obj/effect/hotspot(T)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,5 @@
* Arguments:
* * datum/beam/vine - The vine to be removed from the list.
*/
mob/living/simple_animal/hostile/venus_human_trap/proc/remove_vine(datum/beam/vine, force)
/mob/living/simple_animal/hostile/venus_human_trap/proc/remove_vine(datum/beam/vine, force)
vines -= vine
4 changes: 2 additions & 2 deletions code/modules/photography/photos/album.dm
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@
name = "photo album (Library)"
persistence_id = "library"

obj/item/storage/photo_album/chapel
/obj/item/storage/photo_album/chapel
name = "photo album (Chapel)"
persistence_id = "chapel"

obj/item/storage/photo_album/prison
/obj/item/storage/photo_album/prison
name = "photo album (Prison)"
persistence_id = "prison"
8 changes: 4 additions & 4 deletions code/modules/projectiles/guns/ballistic/rifle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
tac_reloads = FALSE
weapon_weight = WEAPON_MEDIUM

obj/item/gun/ballistic/rifle/update_overlays()
/obj/item/gun/ballistic/rifle/update_overlays()
. = ..()
. += "[icon_state]_bolt[bolt_locked ? "_locked" : ""]"

obj/item/gun/ballistic/rifle/rack(mob/user = null)
/obj/item/gun/ballistic/rifle/rack(mob/user = null)
if (bolt_locked == FALSE)
to_chat(user, "<span class='notice'>You open the bolt of \the [src].</span>")
playsound(src, rack_sound, rack_sound_volume, rack_sound_vary)
Expand All @@ -30,12 +30,12 @@ obj/item/gun/ballistic/rifle/rack(mob/user = null)
return
drop_bolt(user)

obj/item/gun/ballistic/rifle/can_shoot()
/obj/item/gun/ballistic/rifle/can_shoot()
if (bolt_locked)
return FALSE
return ..()

obj/item/gun/ballistic/rifle/attackby(obj/item/A, mob/user, params)
/obj/item/gun/ballistic/rifle/attackby(obj/item/A, mob/user, params)
if (!bolt_locked)
to_chat(user, "<span class='notice'>The bolt is closed!</span>")
return
Expand Down
2 changes: 1 addition & 1 deletion code/modules/reagents/reagent_containers/chem_pack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
. += "<span class='notice'>Alt-click to seal it.</span>"


obj/item/reagent_containers/chem_pack/attack_self(mob/user)
/obj/item/reagent_containers/chem_pack/attack_self(mob/user)
if(sealed)
return
..()
4 changes: 2 additions & 2 deletions code/modules/research/nanites/nanite_programs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@
software_error()

/datum/nanite_program/proc/on_shock(shock_damage)
if(!program_flags & NANITE_SHOCK_IMMUNE)
if(!(program_flags & NANITE_SHOCK_IMMUNE))
if(prob(10))
software_error()
else if(prob(33))
qdel(src)

/datum/nanite_program/proc/on_minor_shock()
if(!program_flags & NANITE_SHOCK_IMMUNE)
if(!(program_flags & NANITE_SHOCK_IMMUNE))
if(prob(10))
software_error()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
duration = -1
alert_type = null

datum/status_effect/rebreathing/tick()
/datum/status_effect/rebreathing/tick()
owner.adjustOxyLoss(-6, 0) //Just a bit more than normal breathing.

///////////////////////////////////////////////////////
Expand Down Expand Up @@ -504,7 +504,7 @@ datum/status_effect/rebreathing/tick()
ADD_TRAIT(owner, TRAIT_NOSLIPWATER, "slimestatus")
return ..()

datum/status_effect/stabilized/blue/on_remove()
/datum/status_effect/stabilized/blue/on_remove()
REMOVE_TRAIT(owner, TRAIT_NOSLIPWATER, "slimestatus")

/datum/status_effect/stabilized/metal
Expand Down
Loading

0 comments on commit 6b3ce37

Please sign in to comment.