Update CONTRIBUTING.md (#10495)

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
This commit is contained in:
jcatjmeow
2020-11-26 15:41:26 -05:00
committed by GitHub
parent a5eaf036b8
commit 034247bbcd

View File

@@ -114,6 +114,15 @@ var/path_type = "/obj/item/baseball_bat"
### Use var/name format when declaring variables ### Use var/name format when declaring variables
While DM allows other ways of declaring variables, this one should be used for consistency. While DM allows other ways of declaring variables, this one should be used for consistency.
### Variable names must not be the same as a proc name
```DM
//Don't do this
/obj
var/block_attack = TRUE
/obj/proc/block_attack()
return density
```
### Tabs, not spaces ### Tabs, not spaces
You must use tabs to indent your code, NOT SPACES. You must use tabs to indent your code, NOT SPACES.