Skip to content

Commit d7efb2f

Browse files
authored
Consort, RK, Hand, Adventurer bugfixes (#5744)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> ## About The Pull Request This PR has been adjusted from original purpose. It is not simply bugfixes for Hand, Consort, RK, and Adventurer. Keys should spawn more reliably for triumph purchasers. Adventurers should no longer the the double-torch bug. There is language in this PR about restricting triumph purchases, but Kevin fixed that in another PR, so it is no longer needed here. <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game A good deal of administrative overhead with the adv. class triumph buy is fixed with this. Hand and RK key issues will no longer occur. RKs WILL spawn with their weapon in their hand; they can fix this pretty easily by just putting their keys in their belt. <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> <!-- !! Do not add whitespace in-between the entries, do not change the tags and do not leave the tags without any entries. --> :cl: qol: Fixed RK sprite on the character selection screen qol: Adventurers spawn with a lit torch, and not two torches balance: Fixed RK stats and skills to be part of the adv class so they don't double-dip on adv class triumph buy fix: Moved Hand, RK keys to belt. /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. --> ## Pre-Merge Checklist <!-- Don't bother filling these in while creating your Pull Request, just click the checkboxes after the Pull Request is opened and you are redirected to the page. --> - [x] You tested this on a local server. - [x] This code did not runtime during testing. - [x] You documented all of your changes. <!-- Neither the compiler nor workflow checks are perfect at detecting runtimes and errors. It is important to test your code/feature/fix locally. -->
1 parent 808368c commit d7efb2f

File tree

5 files changed

+59
-52
lines changed

5 files changed

+59
-52
lines changed

code/modules/jobs/job_types/adventurer/types/_advclass.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
spawned.remove_status_effect(S)
2828

2929
if(spawn_with_torch)
30-
spawned.put_in_hands(new /obj/item/flashlight/flare/torch)
30+
spawned.put_in_hands(new /obj/item/flashlight/flare/torch/prelit)
3131

3232
apply_character_post_equipment(spawned)
3333

code/modules/jobs/job_types/adventurer/types/combat/cleric.dm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@
166166
neck = /obj/item/clothing/neck/chaincoif/iron
167167
belt = /obj/item/storage/belt/leather/adventurer
168168
backl = /obj/item/storage/backpack/satchel
169-
r_hand = /obj/item/flashlight/flare/torch/prelit
170169
cloak = /obj/item/clothing/cloak/tabard/crusader
171170
wrists = /obj/item/clothing/neck/psycross/silver
172171
backpack_contents = list(/obj/item/storage/belt/pouch/coins/poor = 1, /obj/item/reagent_containers/food/snacks/hardtack = 1)

code/modules/jobs/job_types/adventurer/types/combat/warrior.dm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
/datum/outfit/adventurer/sfighter
5252
name = "Fighter (Adventurer)"
5353
belt = /obj/item/storage/belt/leather/adventurer // new belt
54-
r_hand = /obj/item/flashlight/flare/torch/prelit // they get back their missing torches
5554
shirt = /obj/item/clothing/armor/gambeson
5655
wrists = /obj/item/clothing/wrists/bracers/leather
5756
pants = /obj/item/clothing/pants/trou/leather

code/modules/jobs/job_types/garrison/royal_knight.dm

Lines changed: 50 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
/datum/attribute_holder/sheet/job/royalknight
2-
raw_attribute_list = list(
3-
STAT_STRENGTH = 3,
4-
STAT_PERCEPTION = 2,
5-
STAT_ENDURANCE = 2,
6-
STAT_CONSTITUTION = 2,
7-
STAT_INTELLIGENCE = 1,
8-
/datum/attribute/skill/combat/swords = 40,
9-
/datum/attribute/skill/combat/wrestling = 40,
10-
/datum/attribute/skill/combat/unarmed = 30,
11-
/datum/attribute/skill/combat/shields = 30,
12-
/datum/attribute/skill/combat/polearms = 30,
13-
/datum/attribute/skill/combat/whipsflails = 30,
14-
/datum/attribute/skill/combat/axesmaces = 30,
15-
/datum/attribute/skill/combat/knives = 20,
16-
/datum/attribute/skill/combat/bows = 30,
17-
/datum/attribute/skill/combat/crossbows = 40,
18-
/datum/attribute/skill/misc/athletics = 40,
19-
/datum/attribute/skill/misc/riding = 30,
20-
/datum/attribute/skill/misc/swimming = 20,
21-
/datum/attribute/skill/misc/climbing = 20,
22-
/datum/attribute/skill/misc/reading = 10,
23-
/datum/attribute/skill/labor/mathematics = 30
24-
)
25-
261
/datum/job/royalknight
272
title = "Royal Knight"
283
tutorial = "You are a knight of the royal family, elevated by your skill and steadfast devotion. \
@@ -33,6 +8,7 @@
338
job_flags = (JOB_ANNOUNCE_ARRIVAL | JOB_SHOW_IN_CREDITS | JOB_EQUIP_RANK | JOB_NEW_PLAYER_JOINABLE)
349
display_order = JDO_ROYALKNIGHT
3510
faction = FACTION_TOWN
11+
outfit = /datum/outfit/royalknight
3612
total_positions = 2
3713
spawn_positions = 2
3814
bypass_lastclass = TRUE
@@ -54,7 +30,6 @@
5430
EXP_TYPE_COMBAT = 1200
5531
)
5632

57-
attribute_sheet = /datum/attribute_holder/sheet/job/royalknight
5833
honorary = "Sir"
5934
honorary_f = "Dame"
6035

@@ -142,21 +117,47 @@
142117
pants = /obj/item/clothing/pants/platelegs
143118
cloak = /obj/item/clothing/cloak/tabard/knight/guard
144119
shirt = /obj/item/clothing/armor/gambeson/arming
120+
wrists = /obj/item/storage/keyring/manorguard
145121
belt = /obj/item/storage/belt/leather
146122
beltr = /obj/item/weapon/sword/arming
147123
backl = /obj/item/storage/backpack/satchel
148124
scabbards = list(/obj/item/weapon/scabbard/sword/noble)
149-
backpack_contents = list(/obj/item/storage/keyring/manorguard = 1)
150125

151126
/datum/outfit/royalknight/post_equip(mob/living/carbon/human/H, visuals_only = FALSE)
152127
. = ..()
153128
if(H.cloak && !findtext(H.cloak.name, "([H.real_name])"))
154129
H.cloak.name = "[H.cloak.name] ([H.real_name])"
155130

131+
/datum/attribute_holder/sheet/job/royalknight/knight
132+
raw_attribute_list = list(
133+
STAT_STRENGTH = 3,
134+
STAT_PERCEPTION = 2,
135+
STAT_ENDURANCE = 2,
136+
STAT_CONSTITUTION = 2,
137+
STAT_INTELLIGENCE = 1,
138+
/datum/attribute/skill/combat/swords = 40,
139+
/datum/attribute/skill/combat/wrestling = 40,
140+
/datum/attribute/skill/combat/unarmed = 30,
141+
/datum/attribute/skill/combat/shields = 30,
142+
/datum/attribute/skill/combat/polearms = 30,
143+
/datum/attribute/skill/combat/whipsflails = 30,
144+
/datum/attribute/skill/combat/axesmaces = 30,
145+
/datum/attribute/skill/combat/knives = 20,
146+
/datum/attribute/skill/combat/bows = 30,
147+
/datum/attribute/skill/combat/crossbows = 40,
148+
/datum/attribute/skill/misc/athletics = 40,
149+
/datum/attribute/skill/misc/riding = 30,
150+
/datum/attribute/skill/misc/swimming = 20,
151+
/datum/attribute/skill/misc/climbing = 20,
152+
/datum/attribute/skill/misc/reading = 10,
153+
/datum/attribute/skill/labor/mathematics = 30
154+
)
155+
156156
/datum/job/advclass/royalknight/knight
157157
title = "Royal Knight"
158158
tutorial = "The classic Knight in shining armor. Slightly more skilled then their Steam counterpart but has worse armor."
159159
outfit = /datum/outfit/royalknight/knight
160+
attribute_sheet = /datum/attribute_holder/sheet/job/royalknight/knight
160161
category_tags = list(CTAG_ROYALKNIGHT)
161162

162163
/datum/outfit/royalknight/knight
@@ -183,16 +184,28 @@
183184

184185
/datum/attribute_holder/sheet/job/royalknight/steam
185186
raw_attribute_list = list(
186-
/datum/attribute/skill/combat/swords = -10,
187-
/datum/attribute/skill/combat/unarmed = -10,
188-
/datum/attribute/skill/combat/shields = -10,
189-
/datum/attribute/skill/combat/wrestling = -10,
190-
/datum/attribute/skill/combat/polearms = -10,
191-
/datum/attribute/skill/combat/whipsflails = -10,
192-
/datum/attribute/skill/combat/axesmaces = -10,
193-
/datum/attribute/skill/combat/bows = -10,
194-
/datum/attribute/skill/combat/crossbows = -10,
195-
/datum/attribute/skill/craft/engineering = 30
187+
STAT_STRENGTH = 3,
188+
STAT_PERCEPTION = 2,
189+
STAT_ENDURANCE = 2,
190+
STAT_CONSTITUTION = 2,
191+
STAT_INTELLIGENCE = 1,
192+
/datum/attribute/skill/combat/swords = 30,
193+
/datum/attribute/skill/combat/wrestling = 30,
194+
/datum/attribute/skill/combat/unarmed = 20,
195+
/datum/attribute/skill/combat/shields = 20,
196+
/datum/attribute/skill/combat/polearms = 20,
197+
/datum/attribute/skill/combat/whipsflails = 20,
198+
/datum/attribute/skill/combat/axesmaces = 20,
199+
/datum/attribute/skill/combat/knives = 20,
200+
/datum/attribute/skill/combat/bows = 20,
201+
/datum/attribute/skill/combat/crossbows = 30,
202+
/datum/attribute/skill/misc/athletics = 40,
203+
/datum/attribute/skill/misc/riding = 30,
204+
/datum/attribute/skill/misc/swimming = 20,
205+
/datum/attribute/skill/misc/climbing = 20,
206+
/datum/attribute/skill/misc/reading = 10,
207+
/datum/attribute/skill/labor/mathematics = 30,
208+
/datum/attribute/skill/craft/engineering = 30,
196209
)
197210

198211
/datum/job/advclass/royalknight/steam

code/modules/jobs/job_types/nobility/hand.dm

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838
TRAIT_NOBLE_POWER
3939
)
4040

41-
/*/datum/outfit/hand
41+
/datum/outfit/hand
4242
name = "Hand"
43-
shoes = /obj/item/clothing/shoes/nobleboot/thighboots
44-
belt = /obj/item/storage/belt/leather/steel*/
43+
belt = /obj/item/storage/belt/leather/black
44+
beltr = /obj/item/storage/keyring/hand
45+
4546

4647
/datum/job/hand/after_spawn(mob/living/carbon/human/spawned, client/player_client)
4748
. = ..()
@@ -108,13 +109,12 @@
108109
backr = /obj/item/storage/backpack/satchel/black
109110
backpack_contents = list(
110111
/obj/item/weapon/knife/dagger/steel = 1,
111-
/obj/item/storage/keyring/hand = 1,
112112
/obj/item/paper/scroll/frumentarii/roundstart = 1
113113
)
114114
armor = /obj/item/clothing/armor/leather/jacket/handjacket
115115
pants = /obj/item/clothing/pants/tights/colored/black
116116
belt = /obj/item/storage/belt/leather/steel
117-
beltr = /obj/item/weapon/sword/rapier/dec
117+
beltl = /obj/item/weapon/sword/rapier/dec
118118
scabbards = list(/obj/item/weapon/scabbard/sword/royal)
119119
shoes = /obj/item/clothing/shoes/nobleboot/thighboots
120120

@@ -167,14 +167,12 @@
167167
pants = /obj/item/clothing/pants/trou/shadowpants
168168
backr = /obj/item/storage/backpack/satchel/black
169169
wrists = /obj/item/clothing/wrists/bracers/leather/scabbard
170-
belt = /obj/item/storage/belt/leather/black
171-
beltl = /obj/item/weapon/knife/dagger/steel/hand
172-
beltr = /obj/item/weapon/knife/dagger/steel/hand/parry
170+
beltl = /obj/item/weapon/knife/dagger/steel/hand/parry
173171
shoes = /obj/item/clothing/shoes/boots
174172
backpack_contents = list(
175-
/obj/item/storage/keyring/hand = 1,
176173
/obj/item/lockpickring/mundane = 1,
177-
/obj/item/paper/scroll/frumentarii/roundstart = 1
174+
/obj/item/paper/scroll/frumentarii/roundstart = 1,
175+
/obj/item/weapon/knife/dagger/steel/hand = 1,
178176
)
179177

180178
/datum/outfit/hand/spymaster/pre_equip(mob/living/carbon/human/equipped_human, visuals_only)
@@ -246,13 +244,11 @@
246244
backr = /obj/item/storage/backpack/satchel/black
247245
backpack_contents = list(
248246
/obj/item/weapon/knife/dagger/steel = 1,
249-
/obj/item/storage/keyring/hand = 1,
250247
/obj/item/reagent_containers/glass/bottle/poison = 1,
251248
/obj/item/paper/scroll/frumentarii/roundstart = 1
252249
)
253250
armor = /obj/item/clothing/armor/gambeson/hand
254251
pants = /obj/item/clothing/pants/tights/colored/black
255252
shoes = /obj/item/clothing/shoes/boots
256-
belt = /obj/item/storage/belt/leather/black
257253
beltl = /obj/item/weapon/sword/rapier/caneblade/hand
258254
scabbards = list(/obj/item/weapon/scabbard/cane/hand)

0 commit comments

Comments
 (0)