Skip to content

Commit

Permalink
Merge pull request #21 from Stutternov/Big-Ports-PR
Browse files Browse the repository at this point in the history
The Great Portening + More (Royal Guard replacing Knight, Men-at-Arms Loadouts, Etc)
  • Loading branch information
Noightmare authored Aug 7, 2024
2 parents a38028e + 1dc1cb3 commit 0ae5c51
Show file tree
Hide file tree
Showing 78 changed files with 785 additions and 328 deletions.
171 changes: 94 additions & 77 deletions _maps/map_files/rockhill/rockhill.dmm

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions code/__DEFINES/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,11 @@

#define MERCENARIES (1<<7)

#define VETERAN (1<<0)
#define MERCENARY (1<<1)
#define VETERAN (1<<1)
#define MERCENARY (1<<2)
#define DESERT_RIDER (1<<3) //Unused
#define GRENZELHOFT (1<<4) //Unused


#define GOBLIN (1<<8)

Expand Down Expand Up @@ -273,8 +276,10 @@
#define JDO_PILGRIM 30.2
#define JDO_MIGRANT 32.3

#define JDO_VET 31
#define JDO_MERCENARY 31.1
#define JDO_MERCENARY 31
#define JDO_GRENZELHOFT 31.1
#define JDO_DESERT_RIDER 31.2
#define JDO_VET 31.3

#define JDO_VAGRANT 33
#define JDO_ORPHAN 34
Expand Down
4 changes: 3 additions & 1 deletion code/__DEFINES/roguetown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ GLOBAL_LIST_EMPTY(job_respawn_delays)
#define CTAG_BANDIT "CAT_BANDIT" // Bandit class - Tied to the bandit antag really
#define CTAG_CHALLENGE "CAT_CHALLENGE" // Challenge class - Meant to be free for everyone

#define CTAG_WATCH "CAT_WATCH" // Watch class - Handles Town Watch loadouts
#define CTAG_WATCH "CAT_WATCH" // Watch class - Handles Town Watch class selector
#define CTAG_MENATARMS "CAT_MENATARMS" // Men-at-Arms class - Handles Men-at-Arms class selector
#define CTAG_ROYALGUARD "CAT_ROYALGUARD" // Royal Guard class - Handles Royal Guard class selector
#define CTAG_MERCENARY "CAT_MERCENARY" // Mercenary class - Handles Mercenary class selector

/*
Expand Down
2 changes: 2 additions & 0 deletions code/datums/sexcon/sexcon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@
var/datum/sex_action/action = SEX_ACTION(current_action)
action.on_start(user, target)
while(TRUE)
if(target.client.prefs.sexable == FALSE)
break
if(!user.rogfat_add(action.stamina_cost * get_stamina_cost_multiplier()))
break
if(!do_after(user, (action.do_time / get_speed_multiplier()), target = target))
Expand Down
4 changes: 4 additions & 0 deletions code/datums/sexcon/sexcon_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
if(!user.can_do_sex())
to_chat(user, "<span class='warning'>I can't do this.</span>")
return
if(!target.client || !target.client.prefs || (target.client.prefs.sexable == FALSE)) // Don't bang someone that dosn't want it.
to_chat(user, "<span class='warning'>[target] dosn't wish to be touched. (Thier ERP prefrence under options)</span>")
to_chat(target, "<span class='warning'>[user] failed to touch you. (Your ERP prefrence under options)</span>")
return
user.sexcon.start(src)

/mob/living/proc/can_do_sex()
Expand Down
4 changes: 2 additions & 2 deletions code/game/gamemodes/objective_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
name = "the master key."
targetitem = /obj/item/roguekey/lord
difficulty = 3
excludefromjob = list("Lord", "Knight")
excludefromjob = list("Lord", "Royal Guard")

/datum/objective_item/steal/rogue/spices
name = "a pepper mill."
Expand All @@ -47,7 +47,7 @@
name = "the Lord's crown."
targetitem = /obj/item/clothing/head/roguetown/crown/serpcrown
difficulty = 3
excludefromjob = list("King", "Queen Consort", "Knight")
excludefromjob = list("King", "Queen Consort", "Royal Guard")


////////////////////////////////////////////////////////////
Expand Down
10 changes: 5 additions & 5 deletions code/game/gamemodes/roguetown/roguetown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ var/global/list/roguegamemodes = list("Rebellion", "Vampires and Werewolves", "E
"Queen Consort",
"Merchant",
"Priest",
"Knight")
"Royal Guard")
var/num_bandits = 0
if(num_players() >= 10)
num_bandits = CLAMP(round(num_players() / 2), 25, 30)
Expand Down Expand Up @@ -249,8 +249,8 @@ var/global/list/roguegamemodes = list("Rebellion", "Vampires and Werewolves", "E


/datum/game_mode/chaosmode/proc/pick_aspirants()
var/list/possible_jobs_aspirants = list("Prince", "Princess", "Guard Captain", "Steward", "Hand", "Knight")
var/list/possible_jobs_helpers = list("Guard Captain", "Prince", "Princess", "Hand", "Steward", "Knight")
var/list/possible_jobs_aspirants = list("Prince", "Princess", "Guard Captain", "Steward", "Hand", "Royal Guard")
var/list/possible_jobs_helpers = list("Guard Captain", "Prince", "Princess", "Hand", "Steward", "Royal Guard")
var/list/rolesneeded = list("Aspirant","Loyalist","Supporter")

antag_candidates = get_players_for_role(ROLE_ASPIRANT)
Expand Down Expand Up @@ -360,7 +360,7 @@ var/global/list/roguegamemodes = list("Rebellion", "Vampires and Werewolves", "E
"Templar",
"Bog Guard",
"Bog Master",
"Knight"
"Royal Guard"
)
antag_candidates = get_players_for_role(ROLE_NBEAST)
antag_candidates = shuffle(antag_candidates)
Expand Down Expand Up @@ -407,7 +407,7 @@ var/global/list/roguegamemodes = list("Rebellion", "Vampires and Werewolves", "E
"Templar",
"Bog Guard",
"Bog Master",
"Knight",
"Royal Guard",
"Mortician",
"Desert Rider",
"Desert Rider Mercenary",
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/effects/landmarks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark)
icon_state = "arrow"

/obj/effect/landmark/start/knight
name = "Knight"
name = "Royal Guard"
icon_state = "arrow"

/obj/effect/landmark/start/sheriff
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/roguetown/villain/bandit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
beltl = /obj/item/flashlight/flare/torch/lantern
armor = /obj/item/clothing/suit/roguetown/armor/plate/full
gloves = /obj/item/clothing/gloves/roguetown/leather
head = /obj/item/clothing/head/roguetown/helmet/heavy/pigface
head = /obj/item/clothing/head/roguetown/helmet/bascinet
if(prob(30))
neck = /obj/item/clothing/neck/roguetown/bervor
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
mind.transfer_to(W)
W.mind.known_skills = list()
W.mind.skill_experience = list()
W.remove_all_languages()
W.grant_language(/datum/language/beast)

W.base_intents = list(INTENT_HELP, INTENT_DISARM, INTENT_GRAB)
Expand Down Expand Up @@ -170,7 +169,6 @@
mind.transfer_to(W)

var/mob/living/carbon/human/species/werewolf/WA = src
W.remove_all_languages()
W.copy_known_languages_from(WA.stored_language)
W.mind.known_skills = WA.stored_skills.Copy()
W.mind.skill_experience = WA.stored_experience.Copy()
Expand Down
2 changes: 2 additions & 0 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ GLOBAL_LIST_EMPTY(chosen_names)
var/list/randomise = list(RANDOM_UNDERWEAR = TRUE, RANDOM_UNDERWEAR_COLOR = TRUE, RANDOM_UNDERSHIRT = TRUE, RANDOM_SOCKS = TRUE, RANDOM_BACKPACK = TRUE, RANDOM_JUMPSUIT_STYLE = FALSE, RANDOM_SKIN_TONE = TRUE, RANDOM_EYE_COLOR = TRUE)
var/list/friendlyGenders = list("male" = "masculine", "female" = "feminine")
var/phobia = "spiders"
var/shake = TRUE
var/sexable = FALSE

var/list/custom_names = list()
var/preferred_ai_core_display = "Blue"
Expand Down
16 changes: 16 additions & 0 deletions code/modules/client/preferences_toggles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@
prefs.toggles ^= TOGGLE_FULLSCREEN
toggle_fullscreeny(prefs.toggles & TOGGLE_FULLSCREEN)

/client/verb/toggle_screenshake()
set category = "Options"
set name = "Toggle Screen Shake"
if(prefs)
prefs.shake = !prefs.shake
to_chat(src, "Screen shake toggled")

/client/verb/toggle_ERP() // Alters if other people can use the ERP panel ON you.
set category = "Options"
set name = "Toggle ERP Panel"
if(prefs)
prefs.sexable = !prefs.sexable
if(prefs.sexable)
to_chat(src, "Others can play with you.")
else to_chat(src, "Others can't touch you.")

/client/verb/stop_sounds_rogue()
set name = "StopSounds"
set category = "Options"
Expand Down
40 changes: 31 additions & 9 deletions code/modules/clothing/rogueclothes/feet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@
item_state = "shalal"
sewrepair = TRUE

/obj/item/clothing/shoes/roguetown/boots/leather
name = "leather boots"
//dropshrink = 0.75
desc = ""
gender = PLURAL
icon_state = "leatherboots"
item_state = "leatherboots"
sewrepair = TRUE
armor = list("blunt" = 30, "slash" = 10, "stab" = 20, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)

/obj/item/clothing/shoes/roguetown/boots/armor
name = "plated boots"
desc = ""
Expand All @@ -121,15 +131,18 @@
anvilrepair = /datum/skill/craft/armorsmithing
smeltresult = /obj/item/ingot/steel

/obj/item/clothing/shoes/roguetown/boots/leather
name = "leather boots"
//dropshrink = 0.75
desc = ""
gender = PLURAL
icon_state = "leatherboots"
item_state = "leatherboots"
sewrepair = TRUE
armor = list("blunt" = 30, "slash" = 10, "stab" = 20, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
/obj/item/clothing/shoes/roguetown/boots/armor/iron
name = "iron plated boots"
desc = "Boots with iron for added protection."
body_parts_covered = FEET
icon_state = "armorironboots"
item_state = "armorironboots"
prevent_crits = list(BCLASS_CUT, BCLASS_STAB, BCLASS_CHOP, BCLASS_BLUNT, BCLASS_TWIST)
color = null
blocksound = PLATEHIT
armor = list("blunt" = 80, "slash" = 100, "stab" = 70, "bullet" = 100, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
anvilrepair = /datum/skill/craft/armorsmithing
smeltresult = /obj/item/ingot/iron

/obj/item/clothing/shoes/roguetown/jester
name = "funny shoes"
Expand All @@ -143,3 +156,12 @@
item_state = "grenzelboots"
sleeved = 'icons/roguetown/clothing/onmob/helpers/stonekeep_merc.dmi'
armor = list("blunt" = 15, "slash" = 15, "stab" = 15, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)

/obj/item/clothing/shoes/roguetown/boots/furlinedboots
name = "fur lined boots"
desc = "Leather boots lined with fur."
gender = PLURAL
icon_state = "furlinedboots"
item_state = "furlinedboots"
sewrepair = TRUE
armor = list("blunt" = 30, "slash" = 10, "stab" = 20, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
19 changes: 15 additions & 4 deletions code/modules/clothing/rogueclothes/hats.dm
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,18 @@
block2add = FOV_RIGHT|FOV_LEFT
smeltresult = /obj/item/ingot/steel

/obj/item/clothing/head/roguetown/helmet/heavy/pigface
/obj/item/clothing/head/roguetown/helmet/bascinet
name = "bascinet"
desc = "A steel bascinet helmet without a visor protecting the the head and ears."
icon_state = "bascinet_novisor"
item_state = "bascinet_novisor"
emote_environment = 3
body_parts_covered = HEAD|HAIR|EARS
flags_inv = HIDEEARS|HIDEHAIR
block2add = FOV_BEHIND
smeltresult = /obj/item/ingot/steel

/obj/item/clothing/head/roguetown/helmet/bascinet/pigface
name = "pigface bascinet"
desc = "A steel bascinet helmet with a pigface visor protecting the head, ears, nose, mouth, and eyes. Add a feather to show the colors of your family or allegiance."
icon_state = "hounskull"
Expand All @@ -687,14 +698,14 @@
block2add = FOV_RIGHT|FOV_LEFT
smeltresult = /obj/item/ingot/steel

/obj/item/clothing/head/roguetown/helmet/heavy/pigface/AdjustClothes(mob/user)
/obj/item/clothing/head/roguetown/helmet/bascinet/pigface/AdjustClothes(mob/user)
if(loc == user)
playsound(user, "sound/items/visor.ogg", 100, TRUE, -1)
if(adjustable == CAN_CADJUST)
adjustable = CADJUSTED
icon_state = "hounskull_visor_raised"
body_parts_covered = HEAD|EARS|HAIR
flags_inv = HIDEEARS
flags_inv = HIDEEARS|HIDEHAIR
flags_cover = null
emote_environment = 0
update_icon()
Expand All @@ -712,7 +723,7 @@
H.update_inv_head()
user.update_fov_angles()

/obj/item/clothing/head/roguetown/helmet/heavy/pigface/attackby(obj/item/W, mob/living/user, params)
/obj/item/clothing/head/roguetown/helmet/bascinet/pigface/attackby(obj/item/W, mob/living/user, params)
..()
if(istype(W, /obj/item/natural/feather) && !detail_tag)
var/list/colors = list(
Expand Down
2 changes: 1 addition & 1 deletion code/modules/clothing/rogueclothes/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
if(STR)
STR.max_combined_w_class = 21
STR.max_w_class = WEIGHT_CLASS_NORMAL
STR.max_items = 3
STR.max_items = 5

/obj/item/storage/backpack/rogue/attack_right(mob/user)
var/datum/component/storage/CP = GetComponent(/datum/component/storage)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/church/confessor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
total_positions = 0
spawn_positions = 0

allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_sexes = list(MALE, FEMALE)
tutorial = "Confessors are shady agents of the church hired to spy on the populace and keep them moral. As the most fanatical members of the clergy, their main concern is assisting the local Puritan with their work in extracting confessions of sin as well as hunting night beasts and cultists that hide in plain sight."

Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/church/monk.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
total_positions = 4
spawn_positions = 4

allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_patrons = ALL_ACOLYTE_PATRONS
allowed_sexes = list(MALE, FEMALE)
outfit = /datum/outfit/job/roguetown/monk
Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/church/mortician.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
spawn_positions = 3

allowed_sexes = list(MALE, FEMALE)
allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_patrons = ALL_DIVINE_PATRONS //gets set to necra on the outfit anyways lol
tutorial = "As an acolyte of Necra, you have been given the not-so-graceful task of putting the dead to rest instead of healing the living. It isn't a great job by any means, but surely Necra doesn't mind if you take a few trinkets from the dead, right?"

Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/church/priest.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
spawn_positions = 1
selection_color = JCOLOR_CHURCH
f_title = "Priestess"
allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_patrons = ALL_DIVINE_PATRONS
allowed_sexes = list(MALE, FEMALE)
tutorial = "The Divine is all that matters in a world of the immoral. The Weeping God left his children to rule over us mortals and you will preach their wisdom to any who still heed their will. The faithless are growing in number, it is up to you to shepard them to a Gods-fearing future."
Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/church/puritan.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
total_positions = 1
spawn_positions = 1
allowed_sexes = list(MALE, FEMALE)
allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_patrons = list(
/datum/patron/old_god,
ALL_DIVINE_PATRONS,
Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/courtier/butler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
total_positions = 1
spawn_positions = 1

allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_ages = list(AGE_MIDDLEAGED, AGE_OLD)

tutorial = "Servitude unto death; That is your motto. Having nurtured royalty for years, you are nothing short of the King's majordomo, commanding over the rest of the house staff."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
total_positions = 2
spawn_positions = 2
allowed_ages = list(AGE_ADULT, AGE_MIDDLEAGED)
allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_sexes = list(MALE, FEMALE)
display_order = JDO_COUNCILLOR
tutorial = "You may have inherited this role, bought your way into it, or were appointed by the bailiff; \
Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/courtier/magician.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
total_positions = 1
spawn_positions = 1

allowed_races = RACES_TOLERATED_UP
allowed_races = RACES_ALL_KINDS
allowed_sexes = list(MALE, FEMALE)
spells = list(/obj/effect/proc_holder/spell/invoked/projectile/fireball/greater, /obj/effect/proc_holder/spell/invoked/projectile/fireball, /obj/effect/proc_holder/spell/invoked/projectile/lightningbolt, /obj/effect/proc_holder/spell/invoked/projectile/fetch)
display_order = JDO_MAGICIAN
Expand Down
Loading

0 comments on commit 0ae5c51

Please sign in to comment.