Skip to content

Commit 326a445

Browse files
authored
document stuff (#912)
1 parent c1794c5 commit 326a445

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

code/modules/three_dsix/living.dm

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
. += 1
88
if(incapacitated())
99
. -= 10 //lol fucked
10-
if(get_timed_status_effect_duration(/datum/status_effect/confusion))
10+
if(has_status_effect(/datum/status_effect/confusion))
1111
. -= -1
1212
if(IsKnockdown())
1313
. -= -2
1414
if(eye_blurry)
1515
. -= -1
16-
if(eye_blind)
16+
if(is_blind())
1717
. -= -4
1818
if(HAS_TRAIT(src, TRAIT_CLUMSY))
1919
. -= -1

code/modules/three_dsix/roll.dm

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/**
2+
* Perform a stat roll, returning one of: CRIT_SUCCESS, SUCCESS, CRIT_FAILURE, FAILURE
3+
*
4+
*
5+
* args:
6+
* * requirement (int) The baseline value required to roll a Success.
7+
* * stat (string) The stat, if applicable, to take into account.
8+
* * skill (string) The skill, if applicable, to take into account.
9+
* * modifier (int) A modifier applied to the value after roll. Higher means the roll is more difficult.
10+
* * crit_fail_modifier (int) A value added to requirement, which dictates the crit fail threshold.
11+
*/
112
/mob/living/proc/stat_roll(requirement = 10, stat, skill, modifier, crit_fail_modifier = 10)
213
var/stat_mod = stat ? (gurps_stats.get_stat(stat) - 10) : 0
314
var/skill_mod = skill ? -(gurps_stats.get_skill(skill)) : 0

code/modules/three_dsix/stats.dm

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/datum/gurps_stats
22
var/mob/living/owner
33

4+
// Higher is better with stats. 10 is the baseline.
45
VAR_PRIVATE/strength = 10
56
VAR_PRIVATE/dexterity = 10
67
VAR_PRIVATE/intelligence = 10
@@ -14,12 +15,14 @@
1415
ENDURANCE = list()
1516
)
1617

18+
// Higher is better with skills. 0 is the baseline.
1719
VAR_PRIVATE/list/skills = list(
1820
)
1921

2022
/datum/gurps_stats/New(owner)
2123
. = ..()
2224
src.owner = owner
25+
2326
/datum/gurps_stats/Destroy()
2427
owner = null
2528
return ..()

0 commit comments

Comments
 (0)