Skip to content

Commit

Permalink
updates cap frfr
Browse files Browse the repository at this point in the history
  • Loading branch information
cowbot92 committed Jun 27, 2024
1 parent d828249 commit c5ba388
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions code/controllers/configuration/entries/game_options.dm
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
default = 64
min_val = 0

/datum/config_entry/number/bismuthcap
config_entry_value = 6
min_val = 0

/datum/config_entry/flag/dynamic_config_enabled

/datum/config_entry/number/engine_type
Expand Down
1 change: 1 addition & 0 deletions code/controllers/subsystem/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SUBSYSTEM_DEF(mobs)
var/static/list/cubemonkeys = list()
var/static/list/slimes = list()
var/static/list/cheeserats = list()
var/static/list/bismuth = list()

/datum/controller/subsystem/mobs/stat_entry(msg)
msg = "P:[length(GLOB.mob_living_list)]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
icon_state = "bismuth"
icon_living = "bismuth"
icon_dead = "bis_dead"
var/icon_hiding = "yeeslow_scared"
speak_emote = list("grumbles")
emote_hear = list("grunts.","grumbles.")
emote_see = list("wags their tail.", "sniffs at the ground.")
Expand All @@ -26,6 +25,14 @@
can_be_held = FALSE
footstep_type = FOOTSTEP_MOB_SHOE

/mob/living/simple_animal/triceratops/Initialize(mapload)
var/cap = CONFIG_GET(number/bismuthcap)
if (LAZYLEN(SSmobs.bismuth) > cap)
if(prob(30))
new /mob/living/simple_animal/triceratops(loc)
SSmobs.bismuth += src
. = ..()

/mob/living/simple_animal/triceratops/handle_automated_movement()
if(!isturf(src.loc) || !(mobility_flags & MOBILITY_MOVE) || buckled)
return //If it can't move, dont let it move.
Expand Down
3 changes: 3 additions & 0 deletions config/game_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,9 @@ ROUNDSTART_TRAITS
## Cap on how many regal rat minions there can be
#RATCAP 64

## Cap on how many bismuths there can be
#BISMUTHCAP 6

## Enable the capitalist agenda on your server.
ECONOMY

Expand Down

0 comments on commit c5ba388

Please sign in to comment.