Skip to content

Commit

Permalink
A Less Evil PR (0 PQ Minimum For Most Combat Adventurer Roles, Import…
Browse files Browse the repository at this point in the history
…ant Town Roles) (Darkrp-community#493)

PQ affects pickchance of rare class pickprob
  • Loading branch information
Optimism333 authored Aug 30, 2024
1 parent 19b980b commit 8691cb4
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@
if(!(get_playerquality(H.client.ckey) >= min_pq))
return FALSE

if(prob(pickprob))
var/pq_prob = pickprob + max((get_playerquality(H.client.ckey))/2, 0) // Takes the base pick rate of the rare class and adds the client's pq divided by 2 or 0, whichever is higher. Allows a maximum of 65 pick probability at 100 pq
if(prob(pq_prob))
return TRUE

// Basically the handler has a chance to plus up a class, heres a generic proc you can override to handle behavior related to it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
allowed_races = list("Humen")
outfit = /datum/outfit/job/roguetown/adventurer/amazon
allowed_ages = list(AGE_ADULT, AGE_MIDDLEAGED)
min_pq = 0
category_tags = list(CTAG_ADVENTURER)
cmode_music = 'sound/music/combat_barbarian.ogg'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
allowed_sexes = list(MALE)
allowed_races = list("Humen")
outfit = /datum/outfit/job/roguetown/adventurer/barbarian
min_pq = 0
category_tags = list(CTAG_ADVENTURER)
cmode_music = 'sound/music/combat_barbarian.ogg'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
vampcompat = FALSE
outfit = /datum/outfit/job/roguetown/adventurer/cleric
category_tags = list(CTAG_ADVENTURER)
min_pq = 0
maximum_possible_slots = 4

/datum/outfit/job/roguetown/adventurer/cleric
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
allowed_sexes = list(MALE, FEMALE)
allowed_races = list("Dwarf")
outfit = /datum/outfit/job/roguetown/adventurer/dbomb
min_pq = 0
category_tags = list(CTAG_ADVENTURER)

/datum/outfit/job/roguetown/adventurer/dbomb/pre_equip(mob/living/carbon/human/H)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
allowed_races = list("Humen")
outfit = /datum/outfit/job/roguetown/adventurer/swordmaster
maximum_possible_slots = 1
min_pq = 2
pickprob = 15
category_tags = list(CTAG_ADVENTURER)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
allowed_sexes = list(MALE, FEMALE)
allowed_races = list("Dwarf")
outfit = /datum/outfit/job/roguetown/adventurer/dranger
min_pq = 0
category_tags = list(CTAG_ADVENTURER)

/datum/outfit/job/roguetown/adventurer/dranger/pre_equip(mob/living/carbon/human/H)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
)
outfit = /datum/outfit/job/roguetown/adventurer/mage
category_tags = list(CTAG_ADVENTURER)
min_pq = 0
maximum_possible_slots = 2

/datum/outfit/job/roguetown/adventurer/mage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"Aasimar"
)
outfit = /datum/outfit/job/roguetown/adventurer/monk
min_pq = 0
category_tags = list(CTAG_ADVENTURER)
vampcompat = FALSE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"Aasimar"
)
outfit = /datum/outfit/job/roguetown/adventurer/ranger
min_pq = 0
category_tags = list(CTAG_ADVENTURER)

/datum/outfit/job/roguetown/adventurer/ranger/pre_equip(mob/living/carbon/human/H)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
outfit = /datum/outfit/job/roguetown/adventurer/assassin
category_tags = list(CTAG_ADVENTURER)
maximum_possible_slots = 2
min_pq = 0
pickprob = 100

/datum/outfit/job/roguetown/adventurer/assassin/pre_equip(mob/living/carbon/human/H)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/datum/advclass/combat/heartfeltlord
name = "Lord of Heartfelt"
tutorial = "You are the proud lord of heartfelt \
but why did you come to the isle of enigma?"
tutorial = "You are the proud lord of Heartfelt, \
but why have you come to Rockhill?"
allowed_sexes = list(MALE)
allowed_races = list("Humen")
outfit = /datum/outfit/job/roguetown/adventurer/heartfeltlord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/datum/advclass/combat/heartfelthand
name = "Hand of Heartfelt"
tutorial = "You serve your lord as the royal hand, taking care of all diplomatic actions in your relm. \
maybe one day you will become lord too."
tutorial = "You serve your lord as hand, taking care of diplomatic actions within your realm, \
but why have you come to Rockhill?"
allowed_sexes = list(MALE)
allowed_races = list("Humen")
outfit = /datum/outfit/job/roguetown/adventurer/heartfelthand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
horse = /mob/living/simple_animal/hostile/retaliate/rogue/saigabuck/tame/saddled
outfit = /datum/outfit/job/roguetown/adventurer/sentinel
maximum_possible_slots = 1
min_pq = 0
pickprob = 30
category_tags = list(CTAG_ADVENTURER)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
)
outfit = /datum/outfit/job/roguetown/adventurer/swashbuckler
maximum_possible_slots = 1
min_pq = 0
category_tags = list(CTAG_ADVENTURER)

/datum/outfit/job/roguetown/adventurer/swashbuckler/pre_equip((mob/living/carbon/human/H))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"Aasimar"
)
outfit = /datum/outfit/job/roguetown/adventurer/gravedigger
min_pq = 0
category_tags = list(CTAG_ADVENTURER)

/datum/outfit/job/roguetown/adventurer/gravedigger/pre_equip(mob/living/carbon/human/H)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"Aasimar"
)
outfit = /datum/outfit/job/roguetown/adventurer/rogue
min_pq = 0
category_tags = list(CTAG_ADVENTURER)

/datum/outfit/job/roguetown/adventurer/rogue/pre_equip(mob/living/carbon/human/H)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
)
outfit = /datum/outfit/job/roguetown/adventurer/sorceress
maximum_possible_slots = 2
min_pq = 0
category_tags = list(CTAG_ADVENTURER)

/datum/outfit/job/roguetown/adventurer/sorceress/pre_equip(mob/living/carbon/human/H)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
outfit = /datum/outfit/job/roguetown/adventurer/grenzelhoft
category_tags = list(CTAG_PILGRIM)
maximum_possible_slots = 1
min_pq = 0

cmode_music = 'sound/music/combat_grenzelhoft.ogg'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
of one of the rival Orders dedicated to retaking the holy land. \
The 451st crusade is sure to be the last."

min_pq = 0
category_tags = list(CTAG_DISABLED)

/datum/outfit/job/roguetown/adventurer/crusader
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 @@ -23,7 +23,7 @@

display_order = JDO_PRIEST
give_bank_account = 115
min_pq = -4
min_pq = 0
selection_color = "#c2a45d"

/datum/outfit/job/roguetown/priest/pre_equip(mob/living/carbon/human/H)
Expand Down
1 change: 1 addition & 0 deletions code/modules/jobs/job_types/roguetown/church/templar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
spawn_positions = 1
display_order = JDO_TEMPLAR
give_bank_account = 0
min_pq = 0

/datum/outfit/job/roguetown/templar
name = "Templar"
Expand Down
1 change: 1 addition & 0 deletions code/modules/jobs/job_types/roguetown/garrison/mayor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
outfit = /datum/outfit/job/roguetown/mayor
display_order = JDO_CHIEF
give_bank_account = 80
min_pq = 0

cmode_music = 'sound/music/combat_bog.ogg'

Expand Down
1 change: 1 addition & 0 deletions code/modules/jobs/job_types/roguetown/garrison/veteran.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

outfit = /datum/outfit/job/roguetown/veteran
give_bank_account = 50
min_pq = 0

cmode_music = 'sound/music/combat_guard.ogg'

Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/roguetown/nobility/captain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
bypass_lastclass = TRUE
outfit = /datum/outfit/job/roguetown/captain
give_bank_account = 120
min_pq = -4
min_pq = 0

/datum/job/roguetown/captain/after_spawn(mob/living/L, mob/M, latejoin = TRUE)
..()
Expand Down
1 change: 1 addition & 0 deletions code/modules/jobs/job_types/roguetown/nobility/lady.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
display_order = JDO_LADY
bypass_lastclass = TRUE
give_bank_account = 500
min_pq = 0

/datum/outfit/job/roguetown/lady/pre_equip(mob/living/carbon/human/H)
. = ..()
Expand Down

0 comments on commit 8691cb4

Please sign in to comment.