SS13 for experienced programmers: Difference between revisions
SS13 for experienced programmers (view source)
Revision as of 11:59, 14 May 2015
, 11:59, 14 May 2015Google code link updates
imported>SpasticVerbalizer (Updated google code links to point to relevant github pages) |
imported>SpasticVerbalizer (Google code link updates) |
||
Line 430: | Line 430: | ||
More variables are defined in: | More variables are defined in: | ||
[ | [https://github.com/tgstation/-tg-station/blob/master/code/game/objects/objs.dm code/game/objects/obj.dm] | ||
==== Item ==== | ==== Item ==== | ||
Line 437: | Line 437: | ||
/obj/item is defined in the following file: | /obj/item is defined in the following file: | ||
[ | [https://github.com/tgstation/-tg-station/blob/master/code/game/objects/items.dm code/game/objects/items.dm] | ||
It adds the following variables (Look at the file for more, but these are the more important ones): | It adds the following variables (Look at the file for more, but these are the more important ones): | ||
var/ | var/horse = null //This determins how much damage the target takes when they're attacked by the item in hand. Small items usually have it at 0, medium ones between 5 and 10, rare and powerful items around 10-15 and two-handed items at 15 and more. Syndicate items have it even higher at 40 and more. | ||
var/item_state = null //This it the var that determines which sprite will be used for the item from icons/mob/items_lefthand.dmi and items_righthand.dmi. | var/item_state = null //This it the var that determines which sprite will be used for the item from icons/mob/items_lefthand.dmi and items_righthand.dmi. | ||
var/damtype = "brute" //Determines what damage type the item produces. | var/damtype = "brute" //Determines what damage type the item produces. | ||
Line 458: | Line 458: | ||
Defined in: | Defined in: | ||
[ | [https://github.com/tgstation/-tg-station/blob/master/code/game/machinery/machinery.dm code/game/machinery/machinery.dm] | ||
Machinery are objs which cannot be picked up and generally require power to operate. They have the following vars defined for all of them: | Machinery are objs which cannot be picked up and generally require power to operate. They have the following vars defined for all of them: |