* Changes to nut ids and few other recipes. Weight balance in flour from nuts ingredients.
* Changes to nut ids and few other recipes. Weight balance in flour from nuts ingredients.
* Add descriptions to combustion engines
When installing or considering installing most gasoline or diesel
combustion engines, their descriptions were based on the generic
copy-from descriptions for each engine type, making it hard to tell
which engines are suited to various vehicles.
These descriptions suggest typical applications for combustion engines,
or some vehicles where they may be found.
* Create/add E_DIESEL_FUEL flag for diesel engines
The idea is that some oter_ts are just a modification of the existing
terrain, and we want to remember what that terrain was and generate it
before proceeding with the mapgen for the current terrain.
We implement this by adding a flag to the oter_type indicating that it
needs to save predecessor information, and a fallback predecessor
terrain to the mapgen. This serves two purposes: allowing it to opt in
to this feature, which means it is no longer forced to define terrain
for every location, and defining a fallback oter_t to use in the event
none is stored in the overmap (which can happen, e.g. when the mapgen
definition changes between overmap mapgen and tile mapgen for a
particular OMT).
Use the new feature for anthills, so that they blend better into their
surrounding terrain.
Expose predecessors in the debug overmap editor for debugging purposes.
These are the descriptions displayed in the vehicle screen when
installing or removing parts, so it helps to know more about the
different kinds of motor and whether they are appropriate.
Name: Rummaging
Description: Some furniture containers need to open the door to scavenge, to enhance the thrill of scavenging.
MOD Changes:
Firebarrel(100L) - Closer view
Firebarrel(200L) - Closer view
Dryer - Open/Close door,Not block view
Fridge - Open/Close door
Glass Fridge - Open/Close door,Closer view,Not block view
Washer - Open/Close door,Not block view
Oven - Open/Close door,Fireplace
Shredde - Open/Close door
Sample Freezer - Open/Close door,Hide Place
Hay - Hide Place
Bookcase - Closer view,Resize
Crate(Open) - Hide Place
Cardboard Box - Open/Close door
Dresser - Open/Close door,Resize
Glass Cabinet - Open/Close door
Glass Cabinet - Open/Close door,Hide Place
Recycle Bin - Open/Close door,Hide Place,Resize
Trashcan - Open/Close door
Wardrobe - Open/Close door,Hide Place
Filing Cabinet - Open/Close door
Dumpster - Open/Close door,Hide Place
Cupboard - Open/Close door,Hide Place
The changes in #51913 altered how neighbours were entered into the
mapgendata context. For JSON mapgen this fixed issues, but for
hardcoded mapgen it could break things.
In particular, for road mapgen it caused problems.
Add a new flag to allow specific oter_ts to opt out of this new
behaviour, and apply it to roads.
* line 994 in ./data/json/effects.json: removed bite from message so now you dosn't get information about your biten wound every time you got infection even if wound isn't infection
This error is displayed when an unexpected field appears during JSON
parsing. It also appears for valids fields with values in an unexpected
format, for instance when "crit_mult" is a plain floating point number
instead of an object.
* iuse.cpp: remove obsolete part
* iuse.cpp: add an info message when a player activates a talking doll
* iuse.cpp: Use neutral instead of info message
Makes it nicer to read and classifying the message as neutral appears to be more appropriate here
* Bike, wheelbarrow, and 10-inch don't need tire iron
Allow wrench level 2 to change such wheels.
* Wrench 2 removes or installs small rail wheels
* Wrench 1 for scooter, tricycle, and caster wheels
* Eliminate mechanics requirement for small wheels
* Bludgeons to-hit
Updates to-hit standard for the bludgeon list
* Misc to-hit
Updates to-hit standard for the misc list
* Spears_and_polearms to-hit
Updates to-hit standard for the spears_and_polearms list
* Swords_and_blades to-hit
Updates to-hit standard for the swords_and_blades list
* I forgot hands exist
* Unarmed to-hit
fin
* Fixes
Minor fixes
* double space
* end of line error?
* Final fixes
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Take advantage of alternative joins (in different ways) in the mutable
microlab and the test variant of that.
This resolves the issues the mutable microlab would previously have when
not all its hallways could be placed properly, leading to other hallway
fragments.
Alternative joins allow an overmap in a mutable special to match an
existing join that they would not otherwise, without affecting the
requirement for onwards matching on other unresolved edges. This is
particularly useful when spawning a collections of 'clumpy' overmaps
around some existing ones. For example, the mutable microlab has a
hallway and then microlab terrains. The microlab terrains should match
the hallway, but their unresolved edges should only match more
microlabs.
* Change existing "wrench" to "adjustable wrench"
Rename existing wrench to have a more specific name, in preparation of
adding several other kinds of wrench.
Also reduce existing wrench volume; steel density is around 8 g/ml.
Preserve original weight, but reduce volume.
Lowering the volume increased the wrench's effective density, making it
do slightly (~0.94) more damage per second, from 7 to 8 DPS. Adjust the
test case accordingly.
* Add new wrenches and wrenching tools
- cordless impact wrench - medium-battery-powered, for bolts or lug nuts
- locking pliers - can turn bolts (but not fine bolts), and clamp
- socket wrench set - regular or fine bolts, but not lug nuts
- socket screwdriver set - screws or fine bolts
- large adjustable wrench - large bolts or lug nuts
- small adjustable wrench - fine bolts only
* Add new wrench tools to various itemgroups
* Remove WHEEL_FAST from gunsmith kits and bionic
* Change vehicle wheel requirement to tools
Listing specific tools that can fasten a vehicle wheel allows the use of
charged power tools like the cordless impact wrench.
Including the WHEEL_FAST quality requirement is redundant in this case
and clutters the UI, but these three tools are now the only ones with
that quality.
* Realistic stock removal
This update expands mainly on recipes that require forging. Replaces chiseling on most recipes with grinding tools, adds grind qualities to some tools and adds new ones.
Co-authored-by: Tealc <45678006+TealcOneill@users.noreply.github.com>
A few tweaks to the mutable microlab to ensure that it doesn't suffer
unresoved join errors:
* Place the subway section as a single chunk.
* Have more blind hallway segments for obscure corner cases.
* Add cigar paraphernalia
Adds more cigar related items and adjusts the cigar to be more realistic.
Moves all pure tobacco item_groups from misc to this new file and adds several new cigar related groups.
* Boxes of cigars
Adds opened and unopened boxes of cigars in appropriate itemgroups. Fixes error in tobacco.json.
* Pocket cigars
Adds cigar cases with cigars to a few drop groups and adds empty cases in a few spots.
* Mafia boss
Gives the Mafia boss profession a cigar case and a cigar cutter.
* More fluff
Adds some random spawn locations for the punch and cutter. Also adds a deconstruct recipe for the cigar case.
It will help a lot with mutable overmap special design if a rule can
place multiple overmaps together in a chunk.
This attempts to implement that. It entails a significant rewrite of
the guts of overmap special placement.
Add a test_microlab special to test this new feature.
* Implement support for coverage_mult and difficulty for weakpoints
* Fix style errors
* format json
* clang tidy
* Use a enum for weakpoint attack type
* Use sqrt function instead of hardcoded sqrt2
* astyle
* clang tidy
* initialize enum variable
* add breadcrumb mission to old guard rep and dialogue around it
* Add a sign
* start making teamster
move exodii stuff out of broker
* finish off teamster, add to map
* fix accidental duplication of rubik store
* add first aid to rubik
will be used in cybernetic install success
* can turn in mission to old guard rep if you already met the exodii
* updated overlay icons for retrodays
* respect NeoDays weapon overlay - moved light to left hand
* Style tweak
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Added new sword weapon, intermediate step between a crude sword and true blades. Basically forged metal in the proper shape, sharpened with decent skill and tools. But lacking overall because it requires nothing but high fabrication skill to learn.
Co-authored-by: Malorn-Deslor <46245363+Malorn-Deslor@users.noreply.github.com>
* harvest.json: grammar, wording
* mutant_anatomy.json: wording, grammar
Line 511 was duplicated, already in bug_harvest_general_chitin
* effect_on_conditions.json: grey -> gray
* legs_clothes.json
another typo fix while i am at it
* Modified hoarder morale penalty to ignore empty holsters, as well as ignore 25% of the volume for pockets <= 1L
* Changed empty holsters to be a flat -1 penalty
* Fixed wielding a holster, fixed multiple empty holsters not adding correctly
* Alloy Plating CBM changes
More coverage. More protection. Encumbrance. Fewer mutations.
* style fix
* Aftershock version of alloy cbms
Can be removed unlike in base game.
It can be useful to know the rotation of a particular tile for debugging
purposes. This may not be obvious for linear terrain. Add it to the
debugging output in the overmap editor.
Previously these checks were based on absolute map directions. After
this change they are instead rotated with the map, so that they are
easier to use logically within the map.
Previously the mapgen feature of placing chunks based on neighbours used
the absolute cardinal directions on the map. This is unhelpful when the
map is rotated.
Rotate the neighbours to match the rotation of the map so that these
checks make sense for the mapgen.
* Extend/Delete in requirements
* Revert "Extend/Delete in requirements"
This reverts commit 9da0eaeb4e.
* Valentine Cards (#47438)
* Add a proficiency for handloading, and a new profession (#47244)
* Drug Dealer Profession (#47255)
* Adds hallula, a type of bread popular in Bolivia and Chile
* Arm mounted pouch (#46946)
* Tazer drone iii (#47353)
* Added Gelatin and Several Gelatin Based Recipes (#47080)
* Content: bread in a can (#45680)
* New random mission (#44999)
* Mycus fruit Juice (#44952)
* Milleable corn (#46254)
* Talk Tag Additions (#47010)
* Fix typo in Valentines Card (#47583)
* (CrazyCataclysm) Crazy Hallucinations (#47386)
* Mealgurb (#47685)
* Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527)
* Prepare npc, spell, character, and item for new ai (#47207)
* Make acetylene torch cut metal walls. (#46255)
* Added disassembly recipes for several items (#46316)
* Celsius temperature for freezing point (#47028)
* Stand up peek (#47257)
* [AFTERSHOCK] Basic Ballistic Weapons (#47559)
* makes glass walls and glass doors constructable (#47692)
* Crackers as bread and jam&cheese sandwich (#47649)
* [Aftershock] misc typograpical fixes (#47783)
* Tweaks for teas (#47848)
* Have travis run for 0.F-dev
Currently, .travis.yml has a 'development' branch specified as one to run tests for; the current equivalent is the 0.F-dev branch.
* Tweakes to copper and metal pipes. (#47825)
* Fried eggs deluxe, sandwiches, and condiment list (#47786)
* Homemade toastems, buttercream frosting and recipes (#47696)
* Chocolate Cow don't drop "cow pies"
* Remove unused FATIGUE energy source from spells
* [Magiclysm] add owlbear origin snippet (#47752)
* [Magiclysm] add lesser banishment spell, buff greater banishment (#47537)
* Unhardcode bio_heatsink and bio_climate
* Hunting lodge Location (#44378)
* fungal evolution (#47247)
* Add book strap carrier (#47665)
* Partial mine jsonify; new zombie miner (#47790)
* Moved mine_entrance OMT from the list of hardcoded locations to industial locations
Also removed mine_shaft OMT and replaced it with mine_shaft_middle and mine_shaft_lower OMTs.
Also added mine_entrance_roof OMT.
* Added mine_entrance and mine_shaft to the list of obsoleted terrains
* Added a zombie miner and its death drops
* Created a json-version of mine entrance and its roof
* Created a json-version of mine shaft (middle and lower variants)
* Changed overmap special definition of a mine to include new json chunks
* Applied migration of hardcoded mine_entrance and mine_shaft OMTs to new json variants
* Made hardcoded mine chunks generate to the west of lower section of new mine shaft OMT
Also removed mine_entrance and mine_shaft from the list of hardocoded mapgen.
* Completely removed build_mine_room function as all mine rooms are now defined in json
Also removed hardcoded generation of mine entrance and mine shaft.
* Removed mentions of mine rooms from mapgen.h
* Updated alt_map_key mod
* Updated graphical overmap mod
* Added missing harvest
* Appease clang and constify
* Quickfix
* Appease clang one more time
* Add 0.F-dev to matrix.yml
(Getting 0.F-dev working with Travis appears to require additional settings by someone with permissions.) This change enables both pushes and pull requests of 0.F-dev to get checked by the General Matrix. As it is, if one bases a PR off of 0.F-dev, it doesn't get checked by Github.
* 0.F-dev workflows (#47875)
* Alter brown bread recipe to match canned version
Fixes#47874.
* Mine entrance expand (#47928)
* Added mine_materials item group
* Added Trolley vehicle
* Expanded and tweaked above-ground and underground levels of mine entrance
* [DinoMod] Mushroom Madness (#47907)
* misc typograpical fixes
* body pillow recipe makes makeshift body pillow now (#47917)
* Traffic Bollards and an example of deployment (#48017)
* add description for Uyen's missions
* JSONize some trap features, replace trap int_id externs with string_ids (#47933)
* JSONize trap sonar detectibility
Add trap flags - just the same as normal flags, but for traps! Stick
them in their own separate file to avoid confusion.
* JSONize trap memorial messages
light_snare and heavy_snare seem to no longer exist, or I couldn't find
any reference to them but this and tilesets.
Updated dissector trap message, and added a trap message to some traps
(the hallway ones, one or two of the similar-but-not-the-same variants
of existing traps).
* JSONize trap temperature convection
Not quite sure how to describe it, went the lazy route.
* Move traps externs from int to string ids
When loading the game without this content, these will now only give an
error on the use of these, instead of at the end data loading for traps.
Previously there were performance concerns with this, but this should be
fine since #44261 - see #44500.
tr_null must remain an int id, as it used in the string to int id
conversion. This is fine, as it will always be loaded (it's in
data/core).
Move the ledge trap over to data/core as well, because everything will
need the 'open space' trap.
* Clean up character mutation gain a bit
Reduce duplicated code.
I presume there's a reason that set_mutations didn't just call
set_mutation, and the only difference is that it doesn't do the cache
updates till the end, so preserve that behaviour.
* Allow CBMs to specify mutations that prevent installation. (#47822)
* Move CBM installation checks to Character
Reduce code duplication, encapsulate things better, and make this
available outside of the inventory menus.
* Allow mutations to prevent installing CBMs
Bionics can currently cancel mutations when installed, but can't have
mutations prevent installation.
* Spiral mine jsonify (#48003)
* prevent bell spam (#47987)
* Note that vat is required for fermentation in vinegar brewing
* Unhardcode ease of sleep
* calorie test
* Revert "calorie test"
This reverts commit e5355755a9.
* Reuben Sandwiches
* Update recipe_food.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: slimeboy460 <68845349+slimeboy460@users.noreply.github.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
Co-authored-by: Jamuro-g <76928284+Jamuro-g@users.noreply.github.com>
Co-authored-by: Xenomorph-III <sam1998may@gmail.com>
Co-authored-by: grawprog <77870049+grawprog@users.noreply.github.com>
Co-authored-by: Xaleth <countolaf17@gmail.com>
Co-authored-by: El-Jekozo <72350516+El-Jekozo@users.noreply.github.com>
Co-authored-by: RobertoVGoulart <robertovgoulart@yahoo.com.br>
Co-authored-by: Zukulini <dragon.fuego.yo@gmail.com>
Co-authored-by: klorpa <30924131+klorpa@users.noreply.github.com>
Co-authored-by: UmbralReaper <67179462+UmbralReaper@users.noreply.github.com>
Co-authored-by: SariusSkelrets <68650913+SariusSkelrets@users.noreply.github.com>
Co-authored-by: Fosheze <50811445+Fosheze@users.noreply.github.com>
Co-authored-by: Lamandus <33199510+Lamandus@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Co-authored-by: NeviNovat <51816321+NeviNovat@users.noreply.github.com>
Co-authored-by: Karol1223 <68503002+Karol1223@users.noreply.github.com>
Co-authored-by: Hirmuolio <22011552+Hirmuolio@users.noreply.github.com>
Co-authored-by: Charlie Gardai <32105250+Moltenhead@users.noreply.github.com>
Co-authored-by: Mom-Bun <43492737+Mom-Bun@users.noreply.github.com>
Co-authored-by: OromisElf <oromis.der.lehrer.eragons@freenet.de>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Fris0uman <sthapplz@gmail.com>
Co-authored-by: Ramza13 <52087122+Ramza13@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
Co-authored-by: FuelType-Memes <42695732+FuelType-Memes@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: casswedson <nelson1003403634@gmail.com>
Co-authored-by: akirashirosawa <38557723+akirashirosawa@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
* Fix mod testing in CI
The conversion of the tests to use GNU parallel broke the testing of
JSON data for mods other than Magiclysm.
Refactor the code to fix that.
* Fix json errors in mods
* Fix magazine selection code
The fallback magazine selection code had a typo which meant that it was
unable to choose any magazine type except the first listed. Fix it.
Also improve the error message.
Runs astyle on all source files simultaneously, which on Windows+MSYS2
takes about the same amount of time as running astyle on a single file,
making this much faster than "make astyle" even with -j8.
There used to be a function called direction_XY that converted a
direction to a point. This didn't match the naming scheme used for
analogous functions for om_direction and cube_direction.
Rename it to displace_XY and also create a tripoint version displace.
When a mutable special is placed, keep a record of every join used and
store that in the overmap. Display this information in the overmap
editor to aid with debugging.
Unified the names of all the windows
* unified all names to lowercase (including `With` and `Plastic` in the middle of the name)
* moved `open` at the beginning where applicable
* some triple glazed windows still used the pane`
* Added hat
* Added suit
* Added to a itemgroup. Feel free to suggest other places this may go.
* Added a simple map extra depicting a violent prisoner escape from a prison van.
* test?
* Changed some numbers a little.
Done in web-editor.
The new Makefile-based json styling breaks for json files whose paths
contain spaces. This happens in particular in some sound packs.
There's no good way to make Makefiles handle lists of paths which might
contain spaces, so just skip those. They won't be checked in files
anyway. And if you really want to style them style-all-json will work.
* Spelling fix on Meditation
* Smartphones and Other Tweaks
Most professions that started with a cell phone now start with a smartphone. Survivalist types who would prefer the reliability of replaceable batteries, as well as the political prisoner, retain their cell phones. Phones were not added to characters who didn't already have one, though there's a case that could be made for why some of them should.
Removed scissors from Tailor, as a pair are included in the tailor's kit which provides cutting quality
Gave the Special Operator a battery for their radio.
Removed the Crazy Cat Lady/Dude's winter coat and boots since those are far too warm for the default start, gave them sneakers and a messenger bag to make up for the loss of inventory space. I assume this was left unchanged when the starting date was updated to be later in Spring, as the Survivor also used to start with the same coat and boots.
Gave the Day Driver and Kitted Survivor long-sleeved shirts instead of their t-shirts and light jackets to bring them in line with Survivor clothing setup.
Replaced the Burglar's balaclava with a ski mask. There was a note in the file stating that a ski mask would be preferable equipment but that it did not work with Wool Allergy. Now that we have replacement gear for wool allergy starts, listing the ski mask in the burglar's equipment is okay as it will be automatically swapped to the balaclava in the event the player chooses Wool Allergy.
Replaced the Sorority Girl's tank top and leather jacket with a polo shirt to better match the Frat boy's loadout. If there was a specific reason for giving her those clothes, let me know.
Misc. underwear tweaks, giving top underwear to some female professions that were inexplicably missing them, and replacing regular bras with sports bras and briefs with boxer shorts for the more active professions
Removed the reference to the Professional Cyclist being young. The age mechanic is a can of worms when it comes to professions that don't make sense above or below a certain character age, but that's beyond the scope of what I was doing here.
Removed the reference to the Combat Mechanic being a high school dropout. Changed the spelling of "armour" to the American English spelling of "armor".
Expanded the Hobo's description a bit because it seemed too short, drawing on the old description for inspiration.
Tweaked the Motorized Police Officer's description to differentiate it from the Police Officer's, and to justify the lack of a starting motorcycle.
Genericized the Biker's description from the Harley-Davidson brand to just "motorcycle".
Gave the Mail Carrier a more accurate US Postal Service reference in their description.
Removed references to aliens in the Mail Carrier and Meth Cook's descriptions, for consistency with the other professions that universally only reference zombies as the main threat in the world.
Changed "holiday" in the Tourist's description to the American term, "vacation".
Miscellaneous edits to profession descriptions to fix spelling and grammar mistakes, and to bring some of the excessively lengthy ones more in line with the rest.
Corrected the Blackbelt's name to "Black Belt"
Capitalized the "boss" in the Mafia Boss' name for consistency with the other professions.
* gave a purse to the Sorority Girl
removing Sorority Girl's leather jacket prevented her from having any storage for her items. a purse seemed like a reasonable compensation.
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* Snail Mutation tree
* Batrachian Mutation Tree
* Mixed work to complete mutation trees
Need to add rabbit dreams
Additional Insect and Cattle traits
Merge fixes, rabbit dreams, eoc
* Night Raider and Tunnel Fighter traits
* Make Spiked Tail insect
* Enchantment Condition Day and Night
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
* Fix crash when repairing items
This was caused by #51600 which pops the current target if cannot_continue_repair is true.
However, this popped target is later used as fix_location (it's a reference set earlier).
This also fixes#51828 and #51674.
* Update src/activity_handlers.cpp
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* Add penalties for fighting while prone
Accuracy:
- 80% chance for large to-hit penalty, 20% for small penalty
Damage:
- Reduced to 30% of normal damage
Stumble:
- 4x penalty to STR when determining stumble severity
Attack speed:
- 4x movement cost penalty
Stamina cost:
- Increase stamina usage by 50
* Add lesser penalties for crouching
Accuracy:
- 75% chance of lesser to-hit penalty, 25% chance of no penalty
Damage:
- Damage while crouched reduced to 80%
Stumble:
- Half STR applied to stumble calculation
Attack speed:
- 50% extra move cost
Stamina cost:
- Increase stamina cost by 20
* debug_fold_repetition: Fold identical errors to reduce log spam
* debug_fold_repetition: added timestamp and timeout
timestamp for repeated error folding group is that of the last folded
error
timeout is currently hardcoded to 100ms. If another repeated error is
registered that would be folded but is >100ms after the previous error
it starts a new folding group
* debug_fold_repetitions: bookended fold for readability, made output DRY
It's a little easier to read the log as `[First]<folded>[Last]` than
`[First]<folded with last timestamp>`
Need to test folding output during deinit and DebugLog, made a function
to remove repetition.
* debug_fold_repetitions: excess repetition error to forced prompt
As logged error the excessive repetition error causes breaks in folds
which make debug.log less clear while reading, and does not add information
Forced prompting once excess threshold is reached will prompt once per
excessive repetition set.
* Melee practice
Added some basic melee practice recipes, including 2 for training dodge.
* Training dummy for practice recipes
* Dummy recipe and resolve problems
* Intermediate recipes and heavy training dummy
* Changed the armored dummy recipe
The recipe is inspired by the scrap suit recipe.
* Added tanto as a possible weapon for stabbing training
* Punching bag
Co-authored-by: Marloss <78324429+MarlossCDDA@users.noreply.github.com>
* Add blacksmithing tongs.
The tongs in game wouldn't be able to carry around a four kilo zweihander. They are designed for cooking and flipping food, so they are very lightweight and thing, they would most likely bend under the heat of the hot metal.
* Added the need to use blacksmithing (flatjaw) tongs for the Zweihander
Not using tongs for smithing is almost impossible.
* Change the blacksmithing toolset to include the tongs.
I also removed the tongs from the tools on the zweihander.
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
The new translation tests require a .mo file to be compiled related to
the TEST_DATA mod. This was done for CI in the build.sh script, but
that's not appropriate for local users.
Move the commands from build.sh to Makefile and CMakeLists.txt.
Also, add a stamp file so that the Makefile does not rebuild the .mo
files unnecessarily.
Sometimes it's important for the two sides of a join to be different,
for example a hallway_to_room join should not join two hallways. It is
also be important if the set of locations is different for the two
sides.
Add support for this type of asymmetry, and use it to allow anthills to
have multiple entrances.
Update test anthill also.
These ids were previously just using strings; better to use a dedicated
string_id type.
This required adding an actual type for the string_id to point to in
each case, wrapping the collection of mapgen_function_json objects.
* add and distro ammo
added mk262, mk318, m855A1, and assigned to various itemgroups and distros.
Civvie GB hits used for relative rarity:
1128, 383, 15, 8, 1 for m193, m855, mk262, m855a1, and mk318 respectively.
* Update gg_ammo_migration.json
* EDIBLE_FROZEN flag added to medicines in solid or powder form that can be consumed when frozen
Co-authored-by: Denica Bozhinova <denica.bozhinova@smhi.se>
* Add a test to check for monfaction reciprocity
It is possible for monfaction A to have a relationship of FRIENDLY or
NEUTRAL to monfaction B, which has a relationship of BY_MOOD or HATE
vs monfaction A. This leads to B attacking A without the possibility
of the reverse.
* Reformatting, possibly refactoring test
* Use c_str() instead of str() for printf.
* Fix non-reciprocal monster faction relationships
These are my current proposed changes to remove the monster faction
relationship reciprocity problems. @candlebury, I needed to alter
the player _monster_ faction (which does not affect, AFAIK, the
behavior of NPCs, much less the avatar) so that it would be at least
neutral to the robofac_spy; to avoid needing to do this for the larger
human monster faction (which includes exodii), I removed friendly
towards humans from the robofac_spy.
* Try to satisfy clang-tidy.
* Fix was wrong way around re mi-go and slime
Slime, instead of being neutral vs mi-go as a nether-derived faction,
was being by_mood, as per nether?
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
The Windows stack size limit is smaller than Linux, so need to tweak
some code to avoid large objects on the stack.
(Not all of these changes were actually causing stack overflows. I set
the limit for the clang-tidy check at 100KiB, which is quite
conservative, but also reasonable, IMO. Such large objects are probably
best not put on the stack.
It's easy to accidentally write code on Linux that overflows the stack
on Windows. To help mitigate that, add a clang-tidy check looking for
large objects on the stack that might contribute to a stack overflow.
* Add documentation on Proficiencies
- Introduction and distinction between skills and proficiencies
- Proficiency tree/graph: Metalworking tree example
- Effects of gaining proficiency
- Reformat JSON section with tables
- Failure is always an option
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
* Core part of built-in translation library
* Test coverage for translation library
* Plural forms evaluator
* Add plural forms translation test cases
* Remove dependency on gettext and libintl
* Remove libintl-lite for Android
* Rename ngettext to n_gettext to avoid collision with libintl.h
* Improve InvalidTranslationDocumentException diagnostic message
* Fix raw_string_format not supporting positional arguments on Windows
As a proof of concept, use the unknown_item sprite as the
unknown_map_extra sprite in UltiCa. This avoids a big ugly question
mark for unknown map extras.
Allow map extras to be rendered on the graphical overmap. Only those
for which autonote is true will be drawn.
Making this change led to a lot of refactoring:
* Make TILE_CATEGORY an enum class.
* Improved the tile loading report functions.
* Break lines longer than 100 characters in cata_tiles.cpp.
- add kill xp as a Character field
- add kill xp to debug menu character editor
- award kill xp to followers
- add followers' kills to kill tracker
- make "exp" dialog var work with npcs and make it writable
* Fix dog whistle patch to compile & be more efficient
In its original version, the dog whistle patch would not compile on
my older version of clang++ due to lacking double braces for std::array
aggregate initialization. Also changing to const char * to avoid
unneeded allocations, as mentioned by @akrieger on the dev discord.
* Fix lack of double braces in std::array
Another instance, in src/all_enum_values.h included by overmap.cpp.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
* README.md: Improve IRC part
Use Libera Chats own webchat, list the website instead of the irc server pool
* en.motd: Point to the website instead of the irc server pool
* de.motd: Point to the website instead of the irc server pool
* ru.motd: Point to the website instead of the irc server pool
* zh_CN.motd: Point to the website instead of the irc server pool
To add more flexibility to the layout of mutable specials it is
convenient to allow some joins for particular overmaps to be optional.
This helps in particular with the final phase when you want to clean up
all the leftover unresolved joins.
Generalize the definition of joins to allow this in the JSON, and handle
appropriately in the code.
Convert craters to use this feature.
Extend the unit tests to spawn a test crater to exercise this feature.
Rather than always having a fixed number of overmaps for a particular
rule during placement, allow a random number. Currently this can only
be a poisson-distributed number (or a fixed value, as was already
supported).
This alternate version of the compass omits the blank line between the
compass and monster names, and only prints 2 lines of monster names
instead of 4. This makes the Alt Compass overall 3 lines shorter than
the regular Compass.
Nothing in this function depends on being in the game class except the
`u` avatar reference, which is more properly passed in from the
window_panel draw function anyway.
This is supposed to give a helpful error message when devs have a
too-old copy of vcpkg, but for cataclysm it seems to barf in a very
odd way complaining about some yasm-tool-helper version unavailable
and otherwise not being friendly. Even if not, people might need to
rebootstrap because the versions feature is not default until some
newer time period. Regardless, we can just remove this field and
allow existing devs to keep working, and new devs will clone vcpkg
at a new enough rev that things should work fine.
The previous attempt to fix the rare anthill placement errors did not
work. I now know this was due to a simple typo, but tracking down the
issue took a lot of refactoring. That refactoring improved the code, so
I'm including it here.
Changes include:
* The previous fix was that new unresolved joins that might conflict
with postponed joins would themselves be automatically postponed. We
have now reversed this logic so the postponed joins are restored.
This allows another chance for the current phase to satisfy the joins,
now that might be possible.
* Postponed joins now need to have their positions indexed for efficient
access, so I factored out that indexing capability into a new struct
indexed_joins.
* Removed the list of orphaned joins. They should no longer ever occur.
* Added a bunch of calls to a consistency_check function that verifies
the class invariants (except it's disabled for now, with the code left
in case it's useful for future debugging).
* The order of unresolved joins used to depend on their addresses in
memory, which made the tests non-reproducible. Change that to be
deterministic.
* Add unit test which places ~100k anthills to more easily observe
placement errors.
* Improve the debugging output for failed placements to make it easier
to see what happened (add phase boundary markers and capitalize
FAILED).
These electronics practice recipes exercise several electronics
proficiencies by working with a variety of electrical parts. Soldering
practice is auto-learned at electronics level 1, but the other
electronics practice recipes require book-learnin'.
A note on "components" versus "tools" - the "components" in a recipe are
destroyed during crafting, while the "tools" may use up charges but are
not destroyed. This distinction matters a little more in a practice
recipe, because no useful item is yielded.
These recipes have some of their ingredients in "tools" so they are not
destroyed during the practice craft. Some less valuable bits such as
electronic scrap and wire are in "components" and are consumed for each
hour of crafting, representing mistakes and other unrecoverable loss.
To partially compensate this, "byproducts" give back some of the
electronic scrap, which can be re-used for new circuits.
From the same publisher who brought you "101 Crafts for Beginners" and
"101 Wrestling Moves" comes "101 Important Integrated Circuits", a
hefty tome of schematic diagrams and technical jargon that is impossibly
dull to the average reader, but pure golden knowledge to the aspiring
electrical engineer with a pile of recycled components.
The multimeter is more common nowadays than the mere voltmeter. Make it
appear in the same quantities to the voltmeter in most itemgroups, except
the tool_electronics group where multimeters are as common as voltmeters
used to be, and voltmeters are 1/10th as common in that group than before.
Require soldering and circuits proficiency for many of the electronics
construction recipes. More complex or higher-level recipes also require
semiconductors proficiency.
Electrical Circuits: Principles of flowing voltage/current
Semiconductors: Working knowledge of transistors
Integrated Circuits: Using IC chips in circuits
* Add map extras for exodii crashes, and items to populate them with
* Add more variety to wreckages including crashed version
also touches up item groups and terrain appearance
* Create exo_safehouse.json
all data in this file for now, for easier rebasing later.
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
This is a pretty bog standard looking windows workflow. The special
sauce is apparently in the `run-vcpkg` action, which has some magic in
it to cache the resulting built artifacts and automatically restore them
in subsequent runs. This is good, because the vcpkg build is very slow.
There's some subtleties in it though. We have to manually add the
msbuild integration's output paths to the list of cached folders. The
cache also includes pretty much _all_ of the vcpkg folder except build
outputs, which is problematic because it means we can't modify the
builtin triplets on the fly.
Why do we want to modify the builtin triplets? What are the triplets,
even? Triplets are basically short descriptive strings which tell vcpkg
what 'kind' of build you want - eg. `x86-windows`, `x64-windows`,
`x64-windows-static`, whatever. We want `x64-windows-static`, because
dll deployment is a cluster. Regardless, what these triplets map to are
essentially tiny CMake files which set some common configuration for all
the deps that vcpkg builds. These CMake files are usually checked into
vcpkg's repo. If we wanted to set some configuration 'globally' for all
deps, we'd have to insert it into the triplet files directly if there
wasn't some command line argument or environment variable we could use.
So why do we care? By default, vcpkg will build both debug and release
versions of all deps, and this takes a large amount of disk space. Too
much disk space, in fact, for the workers to still complete successfully
(and upload to cache if needed). One way to work around this would be to
insert `set(VCPKG_BUILD_TYPE release)` into every triplet file. This
works, but it breaks `run-vcpkg`'s caching. More specifically, because
`run-vcpkg` caches the entire vcpkg checkout including the triplets, on
subsequent runs if we were to naively insert `set(VCPKG_BUILD_TYPE release)`
again it would simply append after the entry we already had. vcpkg
itself though has extra checks to detect if packages need to be rebuilt,
including hashing the triplet files. If we just keep appending the
setting we will keep changing the triplets and busting vcpkg's cache.
Instead we use 'triplet overlays' which are essentially 'triplet include
paths' that tell vcpkg where to look for triplet files. We'll point
vcpkg at a folder in our repo where we've checked in shadow copies of
the triplets we care about which include the setting automatically, and
will thus be consistent on every run, and no one's cache will be busted.
- vcpkg's 'manifest mode' integrates with MSBuild which lets us skip the
out-of-band install path. This also helps save on dev disk space by
interning the cost into the repo instead of invisibly out of repo.
- Set a minimum vcpkg hash so that we avoid the x86-yasm-tool problem
where 64 bit packages required the 32 bit yasm tool as a helper tool.
this was fixed as of vcpkg commit
`49b67d9cb856424ff69f10e7721aec5299624268` and we can have vcpkg
enforce that with the `builtin-baseline` attribyte in `vcpkg.json`.
- Insert `--clean-after-build` to save even more disk space after the
first install. This does slow down cold builds because vcpkg cleans
after _each_ package and not after each install command, so it has to
redownload some shared tools, but I don't think this is a significant
hit to the total time.
- Cleaned up / corrected `VcpkgUserTriplet` definitions in project
files to properly be the `-static` versions we want.
- Fix ObjectCreator build with correctly named libs for debug and
release and proper lib paths. Unfortunately debug is still broken with
a missing qt symbol, but at least release works.
These enable using options to filter which itype variants are shown.
E.g. someone might not want to show gun variants, but wants to show
clutter variants, or vice versa.
At the moment, the only type of variant (other than generic) and option
for enabling/disabling variants is for guns. More can be added in the
future as needed.
* Add HURT_ON_WIELDED flag to barbed wire
* Add HURT_WHEN_WIELDED flag to shrapnel
* Add HURT_ON_WIELDED flag to nails, too
After all, you would impale your hand unless you carefully put the nails between your fingers.
* Fix typo'd flag
* Fix undefined behavior with can_examine on keycard readers
* debug log when calling the functions for something with an actor
* slightly better debug message
* Cap some anger increases; fix minor leash bug
As suggested by @Venera3 on the dev discord, trying to get monsters a
bit more sensible in combat by limiting anger increases. Also fixed a
minor bug with the leash code which had temporarily-friendly monsters
completely ignore a leash around their necks in planning movement.
* First part of more-sensible cooldowns
This increases the rate at which a monster's anger or morale returns to
its base amount, from once per 10 turns to either once per 8 turns or,
if anger/morale is 15+ away from the base amount, once per 4 turns.
Future modifications will have cooldowns happening properly after being
outside the reality bubble.
* Further fixing on regen_morale case
Having regen_morale should not put the monster above its normal morale
(or anger), even if one or both are below 0.
* Put anger/morale back while outside reality bubble
There is code in process_triggers, enhanced by this PR, to bring
monsters back to their baseline anger and morale. However, this did not
function while outside the reality bubble, nor was it caught up when
the monster came back into the reality bubble.
This commit fixes this problem for "normal" anger/morale returning,
with rounding chosen to avoid roll_remainder; it does not take into
account regen_morale, however.
* Formatting
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
* Update modinfo.json
Removes outdated maintainer info.
* Update README.txt
Updates README to have up-to-date information congruent with current status.
* Route feral human and other rock throwing through the throwing code
Necessitated some touchups on the sanity test for same.
* Extend the rock throwing sanity test to check multiple ranges
* Make field around refugee center look like field
* overmap road looks like road
* solid earth of all kind looks like solid_earth
* Solid rock looks like empty_rock
* Standard access to monster faction id for all creatures
In going over monster::plan() and related functions such as attitude()
and attitude_to(), it became apparent that one problem was the
number of different ways required to derive an (equivalent) monster
faction - differing for avatar, npc, and monster. This commit adds
a virtual function to creature, get_monster_faction(), which already
exists in npc.cpp, but did not for avatars or monsters.
* Satisfy astyle
Forgot to run it on src/creature.h.
* Put get_monster_faction() implementation in header
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
I think I figured out why mutable special placement was sometimes
failing. Some joins could be postponed but others could appear
pointing at the same tile and be satisfied in the absence of the
postponed joins. Then, when the postponed joins are restored they
cannot be satisfied.
Avoid this by keeping track of the tiles with postponed joins and
ensuring that they new joins pointing at the same tiles are added
directly to the postponed list rather than the unresolved list.
* Effect test
* Tested, doc updated
Fungal spores and per venom works
* Have cake, eat it
Martial arts' funcionality is protected from intensity-based removal, docs updated
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
This adds my best guess as to the looks_like for magiclysm-specific
overmap terrains, going off of a combination of corresponding
symbols+colors and logical correspondences. This is for graphical
overmap use. I have also added flags in a couple of places.
- enumerate practice recipes (separately from crafting recipes)
- fix a bug using the wrong skill level to check if a recipe can be
learned
- change the headings when listing crafting recipes for improved clarity
- stop cargo culting ngettext and generally simplify the code
* Make `weapon` private
* Update tests
* Rebase
* Appley suggestions
* Fix weapon dorping
* fix weapon saving
* Rename to get_wielded_item
* rename to set_wielded_item
* fixes
* Post rebase fixes
* fixes
* fix weapon saving
* fixes
* more rebase and fixes
* Apply suggestions
* post rebase fixes
* Extend/Delete in requirements
* Revert "Extend/Delete in requirements"
This reverts commit 9da0eaeb4e.
* Valentine Cards (#47438)
* Add a proficiency for handloading, and a new profession (#47244)
* Drug Dealer Profession (#47255)
* Adds hallula, a type of bread popular in Bolivia and Chile
* Arm mounted pouch (#46946)
* Tazer drone iii (#47353)
* Added Gelatin and Several Gelatin Based Recipes (#47080)
* Content: bread in a can (#45680)
* New random mission (#44999)
* Mycus fruit Juice (#44952)
* Milleable corn (#46254)
* Talk Tag Additions (#47010)
* Fix typo in Valentines Card (#47583)
* (CrazyCataclysm) Crazy Hallucinations (#47386)
* Mealgurb (#47685)
* Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527)
* Prepare npc, spell, character, and item for new ai (#47207)
* Make acetylene torch cut metal walls. (#46255)
* Added disassembly recipes for several items (#46316)
* Celsius temperature for freezing point (#47028)
* Stand up peek (#47257)
* [AFTERSHOCK] Basic Ballistic Weapons (#47559)
* makes glass walls and glass doors constructable (#47692)
* Crackers as bread and jam&cheese sandwich (#47649)
* [Aftershock] misc typograpical fixes (#47783)
* Tweaks for teas (#47848)
* Have travis run for 0.F-dev
Currently, .travis.yml has a 'development' branch specified as one to run tests for; the current equivalent is the 0.F-dev branch.
* Tweakes to copper and metal pipes. (#47825)
* Fried eggs deluxe, sandwiches, and condiment list (#47786)
* Homemade toastems, buttercream frosting and recipes (#47696)
* Chocolate Cow don't drop "cow pies"
* Remove unused FATIGUE energy source from spells
* [Magiclysm] add owlbear origin snippet (#47752)
* [Magiclysm] add lesser banishment spell, buff greater banishment (#47537)
* Unhardcode bio_heatsink and bio_climate
* Hunting lodge Location (#44378)
* fungal evolution (#47247)
* Add book strap carrier (#47665)
* Partial mine jsonify; new zombie miner (#47790)
* Moved mine_entrance OMT from the list of hardcoded locations to industial locations
Also removed mine_shaft OMT and replaced it with mine_shaft_middle and mine_shaft_lower OMTs.
Also added mine_entrance_roof OMT.
* Added mine_entrance and mine_shaft to the list of obsoleted terrains
* Added a zombie miner and its death drops
* Created a json-version of mine entrance and its roof
* Created a json-version of mine shaft (middle and lower variants)
* Changed overmap special definition of a mine to include new json chunks
* Applied migration of hardcoded mine_entrance and mine_shaft OMTs to new json variants
* Made hardcoded mine chunks generate to the west of lower section of new mine shaft OMT
Also removed mine_entrance and mine_shaft from the list of hardocoded mapgen.
* Completely removed build_mine_room function as all mine rooms are now defined in json
Also removed hardcoded generation of mine entrance and mine shaft.
* Removed mentions of mine rooms from mapgen.h
* Updated alt_map_key mod
* Updated graphical overmap mod
* Added missing harvest
* Appease clang and constify
* Quickfix
* Appease clang one more time
* Add 0.F-dev to matrix.yml
(Getting 0.F-dev working with Travis appears to require additional settings by someone with permissions.) This change enables both pushes and pull requests of 0.F-dev to get checked by the General Matrix. As it is, if one bases a PR off of 0.F-dev, it doesn't get checked by Github.
* 0.F-dev workflows (#47875)
* Alter brown bread recipe to match canned version
Fixes#47874.
* Mine entrance expand (#47928)
* Added mine_materials item group
* Added Trolley vehicle
* Expanded and tweaked above-ground and underground levels of mine entrance
* [DinoMod] Mushroom Madness (#47907)
* misc typograpical fixes
* body pillow recipe makes makeshift body pillow now (#47917)
* Traffic Bollards and an example of deployment (#48017)
* add description for Uyen's missions
* JSONize some trap features, replace trap int_id externs with string_ids (#47933)
* JSONize trap sonar detectibility
Add trap flags - just the same as normal flags, but for traps! Stick
them in their own separate file to avoid confusion.
* JSONize trap memorial messages
light_snare and heavy_snare seem to no longer exist, or I couldn't find
any reference to them but this and tilesets.
Updated dissector trap message, and added a trap message to some traps
(the hallway ones, one or two of the similar-but-not-the-same variants
of existing traps).
* JSONize trap temperature convection
Not quite sure how to describe it, went the lazy route.
* Move traps externs from int to string ids
When loading the game without this content, these will now only give an
error on the use of these, instead of at the end data loading for traps.
Previously there were performance concerns with this, but this should be
fine since #44261 - see #44500.
tr_null must remain an int id, as it used in the string to int id
conversion. This is fine, as it will always be loaded (it's in
data/core).
Move the ledge trap over to data/core as well, because everything will
need the 'open space' trap.
* Clean up character mutation gain a bit
Reduce duplicated code.
I presume there's a reason that set_mutations didn't just call
set_mutation, and the only difference is that it doesn't do the cache
updates till the end, so preserve that behaviour.
* Allow CBMs to specify mutations that prevent installation. (#47822)
* Move CBM installation checks to Character
Reduce code duplication, encapsulate things better, and make this
available outside of the inventory menus.
* Allow mutations to prevent installing CBMs
Bionics can currently cancel mutations when installed, but can't have
mutations prevent installation.
* Spiral mine jsonify (#48003)
* prevent bell spam (#47987)
* Note that vat is required for fermentation in vinegar brewing
* Unhardcode ease of sleep
* calorie test
* Revert "calorie test"
This reverts commit e5355755a9.
* Arcology Start
Adding windows and entrances
organization
more mapgen
organization and more overmaps
Update arcology_ground.json
Update arcology_ground.json
Last of the gates
Update arcology_gate_chunks.json
city special and terrain
chunks
Update arcology_ground.json
Update arcology_chunks.json
Update data/mods/Aftershock/itemgroups/arcology_groups.json
Update recipe_obsolete.json
chunkening
testing
fixes
Update arcology_ground.json
Update arcology_ground.json
fixes
neverending fixes
the lintening
Update arcology_gate_chunks.json
Update arcology_gate_chunks.json
Update arcology_gate_chunks.json
Can force spawn now but it is blank
Update arcology_chunks.json
15 tons and whadya get
reverses north and south
Ready for testing
Gates open
Open and Close gates using console
broken metal flooring
* Open and Close
* Lint
* Apply suggestions from code review
Co-authored-by: John Candlebury <johncandlebury@gmail.com>
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: slimeboy460 <68845349+slimeboy460@users.noreply.github.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
Co-authored-by: Jamuro-g <76928284+Jamuro-g@users.noreply.github.com>
Co-authored-by: Xenomorph-III <sam1998may@gmail.com>
Co-authored-by: grawprog <77870049+grawprog@users.noreply.github.com>
Co-authored-by: Xaleth <countolaf17@gmail.com>
Co-authored-by: El-Jekozo <72350516+El-Jekozo@users.noreply.github.com>
Co-authored-by: RobertoVGoulart <robertovgoulart@yahoo.com.br>
Co-authored-by: Zukulini <dragon.fuego.yo@gmail.com>
Co-authored-by: klorpa <30924131+klorpa@users.noreply.github.com>
Co-authored-by: UmbralReaper <67179462+UmbralReaper@users.noreply.github.com>
Co-authored-by: SariusSkelrets <68650913+SariusSkelrets@users.noreply.github.com>
Co-authored-by: Fosheze <50811445+Fosheze@users.noreply.github.com>
Co-authored-by: Lamandus <33199510+Lamandus@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Co-authored-by: NeviNovat <51816321+NeviNovat@users.noreply.github.com>
Co-authored-by: Karol1223 <68503002+Karol1223@users.noreply.github.com>
Co-authored-by: Hirmuolio <22011552+Hirmuolio@users.noreply.github.com>
Co-authored-by: Charlie Gardai <32105250+Moltenhead@users.noreply.github.com>
Co-authored-by: Mom-Bun <43492737+Mom-Bun@users.noreply.github.com>
Co-authored-by: OromisElf <oromis.der.lehrer.eragons@freenet.de>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Fris0uman <sthapplz@gmail.com>
Co-authored-by: Ramza13 <52087122+Ramza13@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
Co-authored-by: FuelType-Memes <42695732+FuelType-Memes@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: casswedson <nelson1003403634@gmail.com>
Co-authored-by: akirashirosawa <38557723+akirashirosawa@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: John Candlebury <johncandlebury@gmail.com>
monster::power_rating() was, instead of actually checking to see if
something had a ranged attack and boosting the power rating
accordingly, was checking for whether the monster was a robot, and
assuming that those had ranged attacks but no other monster did.
At least for evaluations by smarter beings (NPCs and monsters with
PRIORITIZE_TARGETS), this really should be using difficulty - TODO.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
* Report cross compiler version in build.sh
* Don't quote values in GITHUB_ENV lines
These quotes were being preserved in the environment variable values,
which we don't want.
Use tailoring_leather_small requirement (using an awl, sewing tool,
thread, and leather patch) as the basis for practice.
Practice recipe is auto-learned at tailoring level 3, or can be found in
one of the leatherworking tailoring books.
* Fixed missing recipes and blueprints
Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work. Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.
* Fixed missing recipes and blueprints
Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work. Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.
* Fixed missing recipes and blueprints
Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work. Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.
* Fixed missing recipes and blueprints
Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work. Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.
* Fixed missing recipes and blueprints
Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work. Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.
* Fixed missing recipes and blueprints
Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work. Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.
* Fixed missing recipes and blueprints
Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work. Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.
* Marked brewing recipes as a WIP
All the brewery recipes currently result in liquids that get dumped in a puddle inside the camp storage zone. This seemed more convenient than deleting the recipes entirely.
* Removed huge methanol byproduct from moonshine mash
Methanol wouldn't be produced at that stage and that was way too much because of a JSON error. Removed entirely do to it being the only alcohol byproduct.
* Rename gin mash
Renamed and described the two gin mashes to more clearly and accurately reflect their usage.
* Wrote comment for saltworks recipes
When placement of mutable overmap specials fails, it's hard to figure
out why. The small amount of context previously given in the debugmsg
wasn't enough. I did have some further debug printfs in non-compiled
code behind a #if, but that's no use to people who can't compile the
game themselves, nor does it help debug failures in CI.
Reformulate the code so that these more detailed messages are always
saved (rather than printed) and when a placement error occurs, it
includes a full history of the placement to allow for debugging.
Extend the cata-assert check to suggest using cata_fatal, a new macro
for fatal errors.
Use that new macro to replace uses of abort, assert( false ), etc.
Previously there was no error if the dimensions of the "rows" array in
mapgen was too large (there was an error when it was too small).
Add such an error, and fix all the mapgen issues it finds.
* Added, and adjusted fursuits and their armour and rarity
Adds two new suits, the feline and dragon suit. The feline suit just being a wolf suit 2.0, and the dragon suit having wings. Also edits the changes of them spawning so that survivors aren't swamped in fursuits.
* Linted files
Files have been linted
* Fixed some spaces
Fixed the spaces behind periods so they work now, thank you Casswedson btw!
* Update data/json/items/armor/suits_clothes.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* The actual important part
Github is hard
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
We already jsonized the overmap generation for anthills. This further
jsonizes the regular (tile) mapgen, and completely rips out the old
hardcoded overmap generation.
As part of this process, all the overmap terrains became rotatable, and
so needed to be migrated.
This fixes the issue where ants were not spawning in the tunnels for the
new-style anthills.
However, for the time being only regular anthills are being generated,
not acid anthills. I plan to re-add acid anthills later.
Linear terrain (roads, ant tunnels, sewers, etc.) was not previously
possible to define in JSON. This was because the rotation wasn't
correctly calculated for linear terrain. Make it be.
It turns out that the gcc bug this macro works around is actually
present in a less serious form in gcc up to at least 8.3, even though it
was partly fixed in 6. So, update our choice of which gcc versions to
use the workaround on.
Routing the hotkey based use case through the new query code caused some UX regressions such as not being able to use the configured item selection hotkeys.
Many pieces of mapgen have ladders over multiple levels and the player
has to shimmy from side to side in order to climb them. This was
because ladder terrain allowed going either up or down but not both.
This is weird and unintuitive.
Add a new ladder_up_down terrain that allows movement in both
directions. Use it in the fire lookout tower, the radio tower, various
grain silos, and the freshwater research station.
* Rabbit Mutagen pull request
Added rabbit serum and mutagen.
* Rabbits are here
Added new rabbit mutations, included rabbit in fitting existing traits, and created the new category, along with threshold.
* Added rabbit to a few traits that were missing
* Rabbit mutagen recipes
Because of course I forgot this detail.
* Minor change to mutagen items
* Fixes and linting
A file was in the wrong folder, fixed that. And also changed a few more traits.
* Rabbit ears visibility
They are pretty large, changed the value 8 (same as rodent ears) to 9.
* Linting again
Hopefully it will be the appropriate format this time.
* Update data/json/mutations/mutations.json
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
* Update data/json/mutations/mutation_category.json
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
* Added "RABBIT" to the Whiskers mutation
The change in description was to fit both feline and the rabbit category, as suggested by souricelle.
* Added little paws mutation
These will make burrow possible without claws, and help satisfy the uniqueness of the mutation line.
* Linting
Never forget to lint the json files.
* Fixing my first "pull from master" madness
I don't know how to explain this.
* Trying to fix rabbit category problems
* More fixes
Here is hoping this time.
* Apply suggestions from code review
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* added run, crouch, bleeding status icon to sees_player_retro mod
* repositioned icons for better look
* changed run and crouch icons
* Update data/mods/sees_player_retro/modinfo.json
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Allow a mutable overmap special to specify some location constraints for
its initial placement. This prevents some types of placement errors
(such as an anthill over a sewer tunnel that prevents the underground
part being placed).
When placing an OMT as part of a mutable overmap special, previously it
was possible for it to be placed in such a way that it had a connection
into some terrain that could not permit that connection. For example, a
tunnel that would have to lead into another tunnel.
Now, when satisfying a constraint, we also verify that the adjacent
terrains fall into the into_locations member of the respective
connections.
If not otherwise set, those locations are the default locations of the
special.
A first step towards un-hardcoding anthills, make a mutable overmap
special to represent them.
In this first iteration, it's nothing more than a single crossroads with
some variable-length straight tunnels extending in each compass
direction.
Mutable overmap specials are a new type of special where you do not
define a specific layout, but rather a collection of rules about what
OMTs are permissible and how they link together.
Add this as a new subtype of overmap special, with all the associated
code to support it.
This is only an initial, limited, implementation.
I am trying to add a new variant of overmap special. As a precursor to
that, I wanted to refactor a bunch of the overmap_special code so that
more of it is contained within the overmap_special class rather than
other code messing with its internals directly.
Thus, made most of its member variables private and moved various chunks
of code to member functions.
Most instances of deserialize instantly convert from JsonIn to the
object oriented interface, usually JsonObject. Using the improved
interface on JsonIn we can change the signatures on these to more
accurately reflect what they're doing. Also help get rid of JsonIn
which is not supported in the binary json refactor this unblocks.
To allow for incremental migration to JsonValue type deserialization,
we can use the void_t detector pattern to enable one of two overloads
for JsonIn::read(), one which calls a member deserialize function that
takes JsonIn like before, and one which calls it with JsonValue. This
way we can directly migrate types to using a JsonValue derived
deserialize function without an intermediate state which has both old
and new function signatures present.
* Adds casting mold tool. Expands bronce recipe
- Adds a new tool called "casting mold", to reallistically cast an object, a technique is needed. The most common, sand casting, makes use of something like this. A pattern of the desired object is pressed against the sand, the sand retains the shape, the hot metal enters the mold and fills the empty space. Useful for complex pieces. Heavily used in the car and machine industries.
-Expands the bronze recipe to match possible IRL recipes. "Bronze" refers to a group of copper alloys. The new recipe reflects the realistic and commonly found aluminum bronze.
added nail,glue, stick. linted
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Several turrets had there weapons switched out using the migration system which led to miss matched names or different turrets that used the same gun but had different requirements.
Currently crossbow bolts are too long to fit in a regular backpack but display as being able to due to a rounding error. I don't think it's unreasonable for a crossbow bolt to fit in a backpack so I simply shortened them all 6mm so that they would fit and display properly still.
* Fix NC_JUNK_SHOPKEER item list.
Many items in the misc items list of this file were needlessly added 2 to 4 times even. I kept the highest probability and highest charge version of each item and deleted the rest.
* Fixes item_group type
Fixes NC_JUNK_SHOPKEEP_misc being a distribution when it should be a collection.
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
The output for successful tests, even if such is requested of via
Catch2's `-s` flag, now includes messages; it didn't before.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
* Ignore weakpoints for item DPS calculations
* Increase epsilon between actual and expected DPS
* Fix bug with rapid strike calculation
* set effective_dps_test to use a test soldier
* Update zed_soldiers.json
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Change to tripoint_abs_ms:
- goal [was map-relative]
- wander_pos [was map-relative]
- patrol_route [was absolute but not typed]
Remove serialization for path.
Invalidate path on map shift.
Made goal optional, unset when reached.
Rename goal-related functions for consistency/readability.
Converted to cata::optional<tripoint_abs_ms>:
last_player_seen_pos
guard_pos
pulp_location
chair_pos
wander_pos
Some were already absolute, just not strongly typed.
The new field has type tripoint_abs_ms.
Adds a getter, get_location(), replacing global_square_location() --
it's shorter.
Adds a public method move_to() for changing the location. This has the
side effect of calling on_move(), which was introduced in the previous
commit.
Adds a protected method set_location() for changing the location value
without side-effects.
Removes submap shifting for npc and monster position (no longer needed,
and actually a bug now).
Also change callers to not assign the result to a reference.
Although lifetime extension will generally make that work, it is safer
to not rely on it and there's no loss of performance due to RVO and/or
the tiny amount of data in tripoint.
* Add steeltoed shoes
I've added a new foot option and made it an option alongside steeltoed boots where appropriate. I set up one of the two NPCs that have pre-set clothing options to have steeltoed sneakers instead of boots.
* Fix Minor Lint Errors
Fixes three minor lint issues
* Plumb hit source into the weakpoint hit_chance calculation
* Make absorb_hit return the name of the weakpoint, if any
* Add weakpoint printing to ranged attacks
* Add message to non-tech melee attacks
* Run astyle
* style json
* Add messages for weakspots and melee techniques.
* Add translator comments
* Convert string_format to positional and modify translator comments.
* Adjust weak point technique message
* Adjust technique message again.
* Added explicit num capture state to drop/clean menus
* Added num capture keybinding
* Refactor filter popup to use protected function
* Use legacy number key capture if new key not bound
Using 2 sparrow eggs, while it increased the recipe average, still
did not get it within 2 standard deviations of the item's calories,
probably because the standard deviation is only 96 - probably brought
down by multiple identical-calorie other eggs in other permutations.
Adjusting the "backup" for the standard deviation-based check to
use 0.75-1.25 still catches 54 being too low, but allows it with
using 2 sparrow's eggs. (I have some suspicion the original calories
are from a commercial item, which when not deliberately otherwise
tend to be rather caloric to increase customer liking (sugar and fat).
Sparrow eggs only provide 54 calories each, while hen and most other
eggs are 80 calories each. This is sufficient to cause the
recipe_permutations test for chocolate pancakes to fail. Set to use
2 of them most places they're in as requirements, the exception being
magiclysm for one potion where 5 are required - set to 7 to better
match calories for 5 chicken eggs.
* Ading proper meth recipe
Added two new chemical items: red phosporous, pure iodine (not potassium iodine) and acetic anhydride. Added these to the loot pool of the chemical lab and meth lab truck. Also, removed old items from meth lab truck and basement.
Added a new recipe for the making of high-grade meth, which requires a long time, chemical proficiency and lots of chemicals. The high grade meth has slightly better stats than the low grade one.
Also added the other materials needed for it on the loot pool of the chemistry lab, since it makes sense and they were already pretty scarce.
Lastly, planning on adding heroin synthesis from morphine using the last added item: acetic anhydride, but will probably do it tomorrow, since this took me much longer than I was expecting.
* linting
linting previous PR
* Update data/json/items/comestibles/med.json
Adding missing pontuaction
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
* Update data/json/items/chemicals_and_resources.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* Update science_and_tech.json
* adding spaces
Workflow was asking me to add two spaces after the period, for some reason, so I did.
* changing item order in file
moving new meth next to old meth in the file.
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
"DESTROYS" and "PUSH_MON" are both appropriate for a 1000+ kg predatory dinosaur, particularly one with anger triggers including "STALK" (as in berserk).
* Fix sealed containers being targets for pickup actions.
The game assumed that items can always be picked up and only checks for the presence of any item.
But items an not be picked from sealed containers (furniture / terrain with the SEALED flag). This applies to planted plants (seedling/mature plant/...), locked safes, closed crate, closed coffin, ...
Triggering the pickup function will highlight spots around the PC that can be picked from, which would include said containers, but only if they are non-empty.
This allows the player to cheat and check that a safe is non-empty before even attempting to crack it.
It also means the game will not automatically choose the only suitable target.
* Don't consider sealed terrain/furniture with items in it to be examinable.
Similar to the previous commit.
State that we aspire to support XCode for those versions of macOS that
have at least 5% market share. Explain what that means right now and
for the future.
Add a helper script to make it easier to monitor when a particular
version drops below 5% market share.
* Street facing churches
Reverse facing of churches so their entrance faces the street.
* Update church.json
Missed a comma I should have moved
* Update church.json
Roof edges fixed
* Update church.json
Test for fixing JSON validation issue
* Update church.json
Checking if the original even passes the JSON validation
* Update church.json
Reverting to the fixed version after confirming that original couldn't pass the JSON style check either.
* Update church.json
All fixed and everything spawns correctly.
Let's see if this passes checks.
* Add files via upload
Seeing if uploading the json as a file solves the check failures.
* Add files via upload
Uploading file with unix EOL formatting
* Update church.json to re-initialize the stuck checker
Just extended the hedges a bit.
* Add files via upload
Adds missing knives to the Krav Maga list. Considering some of the ones already on the list, such as makeshift and bone knives, ones like the kukri should all definitely be included as well
* Update martialarts.json
Missed a comma. Oops!
* Update martialarts.json
No, I forgot to MOVE a comma.
Dumb
* Offload the LOCK_PICK use_action to the LOCKPICK tool quality.
I've made it to where all tools with the LOCKPICK quality will automatically have the PICK_LOCK use_action. I have removed the use_action itself from all current items I could find.
* Help limit zombie_fuse size change
This prevents increases in the level of the grown_of_fuse effect if
the monster is already at huge. Some further work is needed, namely to
ensure get_size never returns anything outside of the tiny-huge range;
this could happen if the engulfed monster was so big as to pop by 2
size categories. Alternatives include limiting mod_size_bonus or,
for this particular case, an alternate grown_of_fuse effect with
either less size increase or lower maximum intensity, such that -
with a given type base size - it won't put it over huge.
* Attempting to use volume to help limit zombie_fuse
@Venera3 requested going off of volume for (most of?) zombie_fuse. This
should limit to the minimum of by max_hp and by volume * (80 / 62500 ml),
which work out to the same value for a standard zombie.
* Get units to work right for volume limit
Rearrange to mathematically equivalent formula to get units system to
work right.
* Adjust grown_of_fuse for max +2 size
The effect grown_of_fuse now increases size by a maximum of 2. In order
to minimize uncertainty about effects due to roundoff, all effects are
now proportional to changes of 50, not 48.
* Clamp mod_size_bonus to within enum limits
This should prevent any input to mod_size_bonus from causing it to
go outside of the enum limits. I wound up doing this in a slightly odd
fashion, since Creature::get_size() is virtual only (the Creature
structure does not itself include a size, AFAICT); instead of getting
a base size and preventing size_bonus from pushing it beyond tiny/huge,
I limited the adjustment to size_bonus so that it wouldn't push the
current result of get_size() beyond the limits.
* Hopefully satisfy JSON formatter test
* Fix accidental min/max reversal
* Try adding a test of mod_size_bonus
Adding a test to make sure mod_size_bonus will set the size correctly.
May be extended with a few more monsters of various sizes if desired.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
* Start adding WATER_CAMOUFLAGE
WATER_CAMOUFLAGE is a flag meant to reflect that it is currently
unrealistically easy in CDDA to see many things, including most fish,
underwater. This first iteration does not have any changes re
is_divable.
* Scrap is_divable for creature::sees
map::is_divable() checks for not only DEEP_WATER, but SWIMMABLE. It is
not reasonable for visibility underwater to be lessened by a liquid
being swimmable by a human. Moreover, the check for DEEP_WATER
likely predates the use of Z-levels in water (as per @ralreegorganon
on discord); Z-levels should be taken into account, although DEEP_WATER
is unfortunately still used for various terrain. So rule out
visibility from out of the water to underwater if at least 2 of the
following are true: has WATER_CAMOUFLAGE; terrain position has
DEEP_WATER; Z-levels are different.
* Add WATER_CAMOUFLAGE to fish.json; misc cleanup
This adds the new `WATER_CAMOUFLAGE` flag to appropriate critters in
fish.json (those with the `fish` faction, at least to start; game
balance will need to be considered before adding to members of
less-neutral factions). It also removes `WARM` from inappropriate
fish/shellfish (too small to be warm due to retained heat alone) and
puts in `ARTHROPOD_BLOOD` in a couple of places it was missing (e.g.,
non-mutant crayfish).
* Document WATER_CAMOUFLAGE flag
Provide (in JSON_FLAGS.md) documentation for the new WATER_CAMOUFLAGE
flag. (Mostly a copy-and-pase from the CAMOUFLAGE flag, but with some
additions.)
* Sanity check; remove one auto
This puts a sanity check into
`MonsterGenerator::check_monster_definitions()` so that monsters that
can't submerge will generate a debug message if they're tagged with
WATER_CAMOUFLAGE. It also changes an `auto` into the actual type,
mtype, to be clearer about what is happening.
Use mon.id, not mon: `monster( thingy )` wants an mtype_id thingy, not mtype.
* Water camouflage for 1 DinoMod, 1 DSA critter
This adds the WATER_CAMOUFLAGE to the most appropriate monster from
each of DinoMod and Dark Skies Above; both are AQUATIC (as well as
SWIMS). For the first, I added it to the mosasaurus hatchling, which
is rather defenseless otherwise. For the second, I added it to the
(non-sewer) lurker (it is more described as waiting such that it is
hard to see).
* Get water_camouflage working better
is_underwater() appears to be somewhat pickier than I had thought
regarding whether something is actually in water. Checking for
_either_ is_underwater _or_ terrain being swimmable; may need to
extend to second check also, but this unfortunately does mean that
at least some non-water liquids are getting excluded. Should not
matter yet, but may for Aftershock, say.
* Extend use of TFLAG_SWIMMABLE/SHALLOW/DEEP
Get around apparent limits of is_underwater().
* Take into account AQUATIC re SWIMMABLE
After experiments revealed that is_underwater() is not reliable,
@Venera3 pointed out (thanks!) that AQUATIC's implementation of not
going on land is actually checking for SWIMMABLE, and suggested using
SWIMMABLE for more. Allowing AQUATIC + SWIMMABLE to indicate being
underwater even if is_underwater() is false. For WATER_CAMOUFLAGE,
also accepting SHALLOW_WATER (although may need size check, since
that is defined as water not deep enough to cover a human) or
DEEP_WATER.
* Code cleanup
Move checking for likely being underwater (either is_underwater or
AQUATIC and on SWIMMABLE terrain) into a function. Also add helper
function majority_rule as suggested by @jbytheway on discord.
* Add WATER_CAMOUFLAGE to more; size; flag fixes
This adds WATER_CAMOUFLAGE to several more appropriate species,
including the dragonfly nymph/naiad, beaver (but not zombeaver - brown
camouflage is going to be disrupted by red/pink/white ribs being
visible), otter, jawed terror, and the two more-evolved swimmer
zombies (the mancroc and non-base swimmer zombie; the latter is noted
as "glistening"). However, SHALLOW_WATER will no longer count for
distance-based WATER_CAMOUFLAGE for anything human-size or bigger,
since SHALLOW_WATER is insufficient to cover a human being.
I also added CLIMBS to the grey fox (specifically noted as doing so)
and SWIMS to the mink (mentioned as semi-aquatic, for instance).
Comment re LOUDMOVES and INSECT_FLYING
* Add WATER_CAMOUFLAGE to vinebeast; typo correct
This adds WATER_CAMOUFLAGE to the (triffid) vinebeast (not the creeper
vine, which is immobile), which has SWIMS. Also slight copyediting on
one description.
* Change to ter_furn_flag::
Update terrain flags to ter_furn_flag::* use.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
These all have to be refactored in one go, because the deserialize
statics get put into one shared map. Fortunately all of the definitions
and declarations are in the same few files, so the impact is fairly
contained. This eliminates the last 'large' usage of get_raw. What
remains can be dealt with one at a time.
This eliminates a big source of get_raw calls which ultimately aren't
needed. The subclasses and class hierarchy all can just use JsonValue
because they don't use the streaming functionality of JsonIn at all.
The one exception was `text_style_check_reader::get_next`, but it was
feasible to refactor still.
The original form required JsonIn, which forced many callsites to use
get_raw to pass into it. Add overloads for JsonObject and JsonValue and
refactor the common code into a helper function that uses an error
callback lambda to perform the equivalent error messaging that the
original JsonIn form did, regardless of the input. Then refactor get_raw
callsites off get_raw.
- Add offset to JsonObject::throw_error and JsonValue::throw_error
- Add JsonValue::string_error
- Make JsonArray::throw_error const like JsonObject
- Add JsonIn::get_value and JsonArray::next_value
- Add JsonValue::test_null
Makes carts check for in-store generation instead of on the grass outside.
Made minor adjustments to locations of plants and mannequins (and a wall) to prevent carts from generating in weird obstructed corners.
* Make monster::heal actually return amount healed
It is assumed in multiple places, and stated in monster.h, that the
monster::heal function returns the amount healed. Now it actually does.
This came about via #17452, which was to prevent heal from returning
a negative number; I see no way that it now can, but just in case I
have put in a std::max( 0, hp - old_hp ).
* Make recovering speed in on_load more sensible.
As suggested by @eltank (not sure how to get github to properly credit
them, and would like to know), make the healing/recovering of speed in
monster::on_load() proportional to the monster's current hp, so that
a fully healed monster also fully heals speed. Admittedly, it is
rather weird that healing speed doesn't seem to take place elsewhere,
as in while in the reality bubble.
* Follow @eltank's advice re not being paranoid
There really shouldn't be any way that it'll return negative now, and
it would probably be better to have some chance of realizing this
(via the negative return) if it did.
* Round up proportional healing of speed; typo fix
This probably doesn't matter, but make sure there's at least a bit of
healing of speed each time. Also fix one typo (`type-> speed`).
* Apply suggestions from code review
Float/int conversions strike again!
Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>
* Fix error (likely from Github).
Applying a change suggested by @eltank on Github does not appear to
have gone correctly. Fixing.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>
* Update mil_base_z0.json
Fixes file to match changes to original, fixing obsolete item entries and adding updated item data where required.
* Update mil_base_z0.json
Upon consultation with the author, vehicles that are normally status 0 (perfect condition) are now status -1 (worn but likely operable).
- rename assist_proficiencies() to used_proficiencies()
- add some comments
- changed required_proficiencies() and used_proficiencies() to return
vector instead of set as a slight optimization
All four weariness-drawing methods were very similar, having only minor
tweaks between layouts. This commit factors out the common rendering
code into `draw_weariness_partial`, and invokes it from the others.
* play_name variable and getter
* menu to change name and gender
only allow changing gender and name of npc if debug
* change usable of name into get_name() when possible
* play_name into cata::optional
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
* Switch check to check the surrounding points rather than the current point multiple times. Adjust wall support value to be more supportive for higher up floors. Make stairs up support roofs because the connected downstairs is the roof being supported.
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Also add a weariness_text_color wrapper accepting a Character reference,
to simplify usage, and provide a pair( std::string, nc_color ) response
like its kin.
The word "phrase" is a little awkward; "text" fits better conceptually
with "number" and "graph".
Include comments on the intention of text functions vs normal widgets.
Add several `xx_text` widget variables associated with "text color
functions", which are functions in the panels.h `display` namespace
returning a (text, color) pair for the description strings of the pain,
hunger, thirst, fatigue, and weight attributes.
* fix clerical errors
* Fix the problem caused by incorrect inheritance flag
* Cancel the transaction value of raw_tainted_fur and prevent NPC from buying it
* Resolve a bug in partial stack dropping/using and unify ui behaviour
When 'd'ropping part of a stack of items, or selecting part of a stack
for an action such as washing items, any previous selection was not
properly cleared in ::set_chosen_count(). So, the player might mark
3 items in a stack for washing, then change their mind and only was 2.
The UI would be partially (but not completely) updated, but it would
still wash all 3 items. By updating ::set_chosen_count() and moving it
to inventory_multiselector, ui behaviour is made more consistent
between dropping/using items, and this bug is resolved in both menus.
Resolves#50431
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
* Remove most still-left PATH_AVOID_DANGER_2
See #48588.
* DKS alien robot pathing
Extended max_dist for all to 30. Also gave scidrone (only one with PATH_AVOID_DANGER_#) "avoid_traps" ("avoid_sharp" is less of a priority for a flying creature).
* Also update exodii (non-zomborg) cyborgs
These should not be dumb or exploitable any more than the others,
and I-am-Erk appears to be a bit distracted so may have missed about
this.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
assign for every (item, use_action) an ammo factor
Astyle
Show correct ammo consumption value in Item Activation Menu
Deactivate flashlight does not cost charge
* Display menu when reloaded item no longer fits in inventory
Based on the menu shown when attempting to pickup an item that can't fit
in your inventory.
A reloaded item that no longer fits in it's original pocket will be moved
to another pocket if one is available before prompting the user to
drop/wield it.
* Adding deconstruction plus to the base line game
* Fireplaces and rock walls can be deconstructed
To allow us to deconstruct all the things!
* Avoid consistency check failures
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
The monster group in jmapgen_monster was theoretically supposed to be a
mapgen_value but the code only parsed it when it was a string. Fix that
so other values can be used.
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to your pull request.
Leave the headings unless they don't apply to your PR.
Please read carefully and don't delete the comments delimited by "< !--" and "-- >"
Once a pull request is submitted automatic stylistic and consistency checks will be performed on the PR's changes.
The results of these can be either seen under the "Files changed" section of a PR or in the check's details.
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them. -->
#### Summary
None
<!-- This section should consist of exactly one line, edit the one above.
Category must be one of these: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N. Or replace the whole line with just the word None for no changelog entry.
For more on the meaning of each category, see:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md
If approved and merged, your summary will be added to the project changelog:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt -->
#### Purpose of change
It makes the cost and material content of the wolf and dino suit more closely inline with reality. It bugged me that the wolf suit didn't have any cotton in it, and that the prices seemed a bit too high for what a fursuit is.
<!-- With a few sentences, describe your reasons for making this change. If it relates to an existing issue, you can link it with a # followed by the GitHub issue number, like #1234. If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes#1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified. -->
#### Describe the solution
It changes the wolf suit materials to include faux fur and cotton, and changes the cost of both of them to a more realistic amount.
<!-- How does the feature work, or how does this fix a bug? The easier you make your solution to understand, the faster it can get merged. -->
#### Testing
I loaded the game up with the settings changed, and it worked without any bugs.
<!-- Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions. Also include testing suggestions for reviewers and maintainers. -->
#### Additional context
https://cdn.discordapp.com/attachments/638239225803702283/880617361995083796/unknown.png Screenshot of the wolf suit.
<!-- Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here. -->
Move these three functions out of `character.h|cpp` and into
`panels.h|cpp` with a `const Character` argument:
- get_weight_string => display::weight_string
- get_weight_description => display::weight_text_color
- get_weight_long_description => display::weight_long_description
This namespace is presently only used as a wrapper to make
`activity_level_str` accessible to the crafting GUI, per #49026.
I intend to move several other descriptive functions defined in
`panels.h|cpp` into this namespace, making it a more general-purpose
collection of descriptive text and color translation methods. Hence, the
namespace is here renamed to `display`.
Sometimes you want to choose one value in mapgen based on another. For
example, to make a fence gate match its respective fence. This switch
form of a mapgen value permits that.
To make this work, we had to allow any mapgen argument to be treated as
a string even when it was a more specific type (like a terrain id).
To aid with testing and debugging mapgen, add a new option to the
overmap UI (in debug mode) that allows you to manually set the arguments
for an overmap special. Currently, only the overmap special-scoped
arguments may be set.
This wrapper mapgen helper wasn't forwarding most of the overridable
functions to its alternatives as it ought to have been.
Remedy that.
In particular, this fixes the phase() for such mapgen, which means that
top-level mapgen can override palette mapgen as it is supposed to.
I wrote this documentation to explain how to use the new feature of
choosing from a weighted list of palettes. However, it turns out that
palettes themselves had never been documented (at least, not in
MAPGEN.md), so I had to document them first.
Also added a note about using the overmap editor to see mapgen
arguments.
Create a new cabin_abandoned palette and change one of the cabin
variants to use it half the time using the new palette choice feature.
The abandoned cabin has mostly trash as items, is overgrown, and might
have broken doors, windows, etc.
Allow a reference to a palette in mapgen to be a mapgen_value. That
means it can be a distribution. That mapgen value is injected as the
default value of a new (internal) mapgen_parameter, and the value of
that parameter dictates the palette used.
When the palettes are added to the chunk of mapgen, every possible
palette's pieces of mapgen are added, but those for which the palette
might not be chosen are constrained by the mapgen value using a new
jmapgen_constrained feature.
* Plasma torches and Structural Imagers
* Overwrite vanila basecamp recipes to use new toola
Most of these should be removed once in the exoplanet anyways.
* Style overwrites
The `bp_wetness` widget_var displays the wetness of any body part using
`avatar.get_part_wetness()`.
The "wetness_num" and "wetness_graph" widgets in `sidebar.json` may be
used in custom layouts.
The `weariness_level` widget_var displays the value returned from
`avatar.weariness_level()`.
The "weariness_num" and "weariness_graph" widgets in `sidebar.json`
may be used in custom layouts.
The `morale_level` widget_var displays avatar morale from
`get_morale_level`, with values typically ranging from -100 to +100.
The "morale_num" widget in `sidebar.json` may be used in custom layouts.
Also:
- changed pf::node to use typesafe direction and renamed to
pf::directed_node
- replaced the functor with std::function and the estimator return
with node_score
- fix unit test
Sourced from https://github.com/gulrak/filesystem/releases/tag/v1.5.8
This is a C++17 compliant `std::filesystem` polyfill. When included via
`ghc/fs_std.hpp`, it will delegate to the actual implementation when
available, populating the methods in the namespace `fs`. When not available,
its own implementations will be in the same namespace.
Try using the new recursive palette support in lab_mutagen_palette. It
now includes lab_common_palette, so all the places using it no longer
need to list both.
Now palettes can use other palettes. This can reduce repetitiveness in
mapgen somewhat, but should be more useful in the future with the
addition of variant palette support.
- introduce leashed and led_by_leash effects
- add corresponding actions to the monexamine pet menu
- consume rope on leash, return it on unleash
- rework tie action to require leashing first
* Make it possible to make follows common topics to NPC-specific.(TALK_FRIEND / TALK_RADIO / TALK_LEADER / TALK_STOLE_ITEM / TALK_WAKE_UP)
* Document updated.
* adding topic to costomize(TALK_MUG/TALK_STRANGER_AGGRESSIVE/TALK_STRANGER_SCARED/TALK_STRANGER_WARY/TALK_STRANGER_FRIENDLY/TALK_STRANGER_NEUTRAL
"Tourist table" as a name for a small metal folding table appears to
be unique to CDDA. Indeed, CDDA is the first Google result for
"tourist table". Personally, I have to remember every time what a
"tourist table" is supposed to be, so using a more common name would
be better.
"Folding table" seems to be the most common phrase for this kind of
table.
"Travel table" or "camping table" are also candidates, and there are
other terms listed on https://en.wikipedia.org/wiki/Folding_table but
"folding table" is nicely generic, and doesn't state exactly what kind
of table it is, which is nice because we currently have lots of usage
of these tables both at campsites and inside residential buildings.
Which makes sense, because folding tables are quite common.
This gives a few pointers on configuring astyle for those using Code::Blocks. I decided not to go too overboard as it is extremely simple, but there are enough caveats and pitfalls to deter a beginner or that would take a while to figure out. I decided not to include screenshots or an extended description as styles do change and I'd rather not bloat the article. The descriptions in .astylerc should be sufficient and if not, well, maybe we can update this doc.
Update the mutagen lab mapgen to select either hot or cool vents rather
than always using cool vents. The intention is that the vents should be
the same throughout a lab, but potentially different between labs.
Previously, parametric mapgen could only be used for terrain. Extend
that to all other json mapgen pieces for which is is straightforward to
do so.
A few of trickier cases remain without support:
* jmapgen_gaspump's fuel type
* jmapgen_item_group's item group
* jmapgen_loot's result_group
* jmapgen_monster's monster ids
* jmapgen_sealed_item's furniture id
Postponing those to the future for now.
* Mop wood shaft is trivally different from broom
* Update data/json/recipes/weapon/piercing.json
* Space, the final edit.
These are the voyages of the software dda...
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* Three New Vans & Two Hybrid Variants
* New vans added to appropriate groups
* Changes provided by acepleiades
* Created new Mini RV variant for Camper Van
* Add deconstruct mannequin, combine mannequin with talking doll, and use it to spawn a friendly immobile decoy
* Less HP on mannequin decoy and use PARROT instead of custom attack
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* smaller container for nondairy milks
Nondairy milks don't come sizes larger than a half gallon in real life.
* rename large paper carton to milk carton
Let's call a milk carton a milk carton.
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
* Add option to raise the visor to motorcycle helmet
Copies entire entry, replace using copy-from once #43144 will get merged
* Add option to raise the visor to motorcycle helmet
* remove deprecated armor_portion_data
* Update data/json/items/armor/helmets.json
added a deluxe cheeseburger which demands all of the fixings of a burger as opposed to just 1 condiment and 1 vegetable like the normal cheeseburger demands
* Condense item stacks in consume_items only when they are mergeable; Show display_name when examining smoking rack and mill; Fix rot for cooks_like comestibles
Fix all the various warnings from the new cata-serialize check as best I
can.
Most of them are simply suppressed. Some seemed to be genuinely missing
serializations. A few were worked around in other ways by tweaking the
code.
Reduce durability of vehicle parts
Change values on biosil chitin material
Add NO REPAIR to biosil armors and update descriptions
Didn't block repairing of vehicle parts, since loss of acid-resistance is inessential
* Refactor Character::is_wearing_shoes
The code was using a pair of tristates no_foot|no_shoe|has_shoe and
updating skipping updates if the caller did not ask for both feet
This should make the logic easier to follow
* Make method declaration match
Co-authored-by: Andrey Bienkowski <hexagon-recursion@posteo.net>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
There's no reason for this to be hardcoded, and dynamically constructing
the ids every turn (for Character::update_bodytemp) is actually a
significant performance sink.
Move it to JSON, experience performance improvements.
Without this, suppressions had to be applied to the member variables.
With this, there is a way to suppress the errors with a comment in the
function itself.
This check is intended to catch cases where a new member is added to a
class but not to its corresponding (de)serialize function. That's a
mistake I made recently.
The vast majority of the time, we won't have any blisters - so only go
through the mildly expensive process of getting fire armor when we have
blisters.
Don't check every item for a flag for every item the character is
wearing, just check the current flag.
Character::in_climate_control drops off the profile of
Character::bodytemp with this change.
Perform two optimizations on Character::bodytemp
1. Store the items worn on each bodypart, and refer to that instead of
iterating through all worn items and selecting the ones for the
relevant body part multiple times.
2. Adjust some functions to run once, and return the data for all body
parts. This optimization has a fair bit of overlap with #1, but I
think both have value
There should be no behavioural changes.
* display gun loudness
I was unable to test the difference between different fire modes because all the guns I tried actually had the same loudness with their different fire modes
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
* Added separate factions for seweranhas and sewer snakes
* Assign seweranhas and sewer snakes to their new respective factions
* Applied @actual-nh suggestion
Even if you turn off the rust option from the menu, if you have
accumulated rust before turning it off it will still have an effect on
skill training so highlight the skill to show that.
Use the new functionality of mapgen parameters in nests to choose a
random colour of carpet for each carpet used in a nested mapgen using
house_w_nest_palette.
Previously there was a separate symbol for each carpet colour but only 6
(red carpet) was ever used. Remove the unused symbols and repurpose 6
to mean "random carpet". Make the parameter of nest scope so each nest
can choose a carpet colour independently.
We want mapgen parameters to work inside nested mapgen, at all scopes.
To make this work we lift all parameters from nests to overmap terrains
before lifting again from overmap terrains to overmap specials.
At mapgen time, the arguments chosen for these parameters cascade down
in the opposite direction.
Previously when placing an overmap special on top of an existing overmap
special (e.g. via the debug menu) the parameters for the old one would
persist and the new one would lack its parameters. Instead, overwrite
the old with the new.
* Mutant brains
* Mutant lungs
* Mutant liver
Offal adjustments
* Mutant kidneys
Also no pancreas for you
* Organ meats are good for you, m'kay?
Not inheriting the badness of mutant stuff is a problem, but that's why we have toxins
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
In a multi select inventory window the RIGHT action was being reused to
Mark/Unmark an item effectively making it impossible to bind any key to
"Next column" in those menus.
This patch introduces a new action "TOGGLE_ENTRY" bound to '.' and '5'
to select items in those menus.
It does break the previous behaviour and, AFAICS, would require players
to unbind "Next column" globally and rebind it locally if they wish the
old behaviour back.
* Change Cut Cotton to Patchwork, add Patchwork to Rags
We're moving away from Rags towards Patchwork Sheets and Cotton Sheets.
This makes it so cutting up cotton stuff gives patchwork sheets, and you can repurpose them as rags if you need to use them in an older recipe
Reupurposing is instant because you don't actually need to change them, you just change how you use them (like to stop bleeding)
* spelling and linting
* uncraft to match recipe
changed uncraft to match recipe
debating whether the uncraft should be removed entirely
* Adding cotton patch as intermediate item
after studying the way sheet_cotton_patchwork was implemented I think that was meant to be for a possible cloth bolt. adding a cotton_patch intermediate item to replace rags with until I can get clarity on whether we want to use actual clothing bolts/sheets and if so to allow interoperability during the transition
* adjustments for intermediate item
* Update materials.json
* Update recipe_deconstruction.json
* Update recipe_deconstruction.json
* adjust relative qty for cotton_patchwork and it's sheet version
* disassemble sheet bedding -> sheet cotton patchwork
* adjusted cotton patchwork disassembly amount
* linting
* Adjust player height calculation based on size category
Make size affecting mutations change player's height based on percentage of the original height (rather than a flat value adjustment) to better match mutation descriptions
* Update unit tests related to body weight
* Add min and max heights for each size category
Make size mutations work based on a deviation from default character height
* Add mountable creatures test
Co-authored-by: I-am-Erk<45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Placing item groups using the "items" key was not validating that the
given ids were valid until they came to be used.
Validate them at data validation time.
Fix the issues thereby detected.
* Clarify the MISSION_RANCH_FOREMAN_1
The item is called "plank" in the game. Referring to it as 2x4 in the quest description caused confusion
* Clarify MISSION_RANCH_FOREMAN_10
The item is called antiseptic in the game. Referring to it as "disinfectant" caused player confusion
* Clarify MISSION_RANCH_FOREMAN_11
The item is called "arc welder" in the game. Referring to it as "electric welder" caused player confusion
* Clarify MISSION_RANCH_FOREMAN_10_1
There was no way to see on the mission screen how many bandages you need to gather.
The issues with the old version:
* Hard to understand reduction steps. KorGgenT already fixed one bug
caused by this: cc0927b818
* Implicit handling of characters with less then two legs. This was
actually hiding one more bug: characters with one leg would be treated
as if the second leg has 0 hp. Note: having a broken leg is different:
the broken leg is still attached and has 0 hp
Co-authored-by: Andrey Bienkowski <hexagon-recursion@posteo.net>
Removed standby power from the Recharging Station. Updated both descriptions to make it clear that they need a vehicle battery to function and that they drain it.
* better learning!
phase 1: Track highest xp ever reached, recover rust faster if you are below it, and also gain xp while you regain rust.
increment highestlevel if your highestexperience gets there.
* books only train theory
* rename "highest" to "knowledge" save confusion in long run
* recipe requirements can be theory based
* Books increase theory
and your ability to read a book is based on your theory level
* rust rate drops as you accumulate rust
* make book larnin' show theory experience
Run rust once per day, not at random times. Change the amount of xp lost instead of the frequency you do rust. It's a lot easier to calculate.
* book theory gain falls off as level gap increases
* NPC skill affects their teaching
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Target the midpoints of edges between OMTs instead of OMT midpoints,
same as autodrive. Avoids entering and exiting houses for no reason and
uses more efficient (up to sqrt(2) times faster) diagonal movement
instead of zig-zagging.
* Created the adept magus staff
* lint json
* Fix lint again
* Did the kelvinist ice weapon.
* Quick fix by removing ammo from the json
* Revert
* Revert "Quick fix by removing ammo from the json"
This reverts commit 9b8e4d336a.
* Revert "Revert "Quick fix by removing ammo from the json""
This reverts commit 4469d64df2.
* Update data/mods/Magiclysm/items/enchanted_melee.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
* Update data/mods/Magiclysm/items/enchanted_melee.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
* Update data/mods/Magiclysm/items/enchanted_melee.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
* Fixed charge used for kelvinist weapon
* Finished adding the recipe to the bio and kelv weapons.
Created the bio weapon.
* Lint json.
* Add more space
* Added sharp bone recipe, changed the capitalization
* Fixed some errors in the json to build
* Finished the technimancer weapon
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
When terrain and furniture were merged into the same mapgen system as
everything else it changed the order in which mapgen happened. In
particular, some terrain was now placed after nested mapgen, which
caused the terrain from the nest to be overridden.
Add the ability to define an ordering in which the jmapgen_pieces should
be applied, and ensure that terrain and furniture go first. This should
more closely match what happened before the changes in #48498.
In particular, this fixes#49788, the issue with missing walls in
basements.
blackjack oak has the brown color, make it hard to identification between the normal harvested tree and this one, and when it harvested, it turn to green instead of brown, so I change it to yellow to the tree and brown to the harvested one for this tree, in order to share the same color for the harvested tree as the others do.
Add a "Custom" sidebar section that can be toggled on for each
sidebar layout (classic/labels and narrow/compact), loading from the
"root_layout_wide" or "root_layout_narrow" widget.
Build on the data-driven sidebar `widget` class, defining a collection
of numeric and graph display elements, including familiar as well as new
informational displays:
- HP bar graphs for each body part, in familiar `|||||` form
- Classic and extended (10-character) stamina graph
- Numeric indicators for sound, focus, pain, moves, str, dex, int, per
- Encumbrance bar graphs for each body part
- Warmth numbers for each body part
- Wide and Narrow root layouts with basic info
This commit adds a `widget` class for rendering a UI view of some
internal value or status variable of an `avatar` (player character).
It includes a generic factory wrapper to load widgets from JSON.
widget_var for linking avatar attributes to widgets:
- focus, move, pain, speed, stamina, stats, HP per bodypart and more
widget class to render avatar variables in UI with labels and layout:
- uses generic_factory to load JSON from widget types
- JSON: id, label, style, var, colors, symbols, width, fill, etc.
- show() to render widget value from avatar instance
- layout() to arrange widgets and do max width padding/alignment
- get_var_value() to return avatar's current "var" value
- color_value_string() to render value with colors
- supporting: value_color(), value_string(), graph(), num()
This function returns a typed tripoint, similar to
Creature::global_square_location().
Callers of vehicle::global_pos3() that really wanted an absolute
position have been changed to use this function instead.
Resolves some "TODO: fix point types"
* Create PROFICIENCY_INFO.md
* Add spacing for easy reading
* Rename to PROFICIENCY_LIST to better suit file
* Use markdow table syntax + some edits
add requiered_proficiencies and can learn, may be useful for players
* Include magiclysm proficiencies
* Rearrangement into logical categories
This has also enabled spotting a few (likely) errors - like prof_pottery_glazing not requiring prof_pottery, prof_closures_waterproofing not requiring prof_closures, prof_tanning not requiring prof_tanning_basic, prof_safecracking not requiring prof_lockpicking, and various gunsmithing proficiencies not requiring prof_gunsmithing_basic.
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Certain Json functions had a commenting saying 'for string_id' but were
templated over some arbitrary type that supported a `.str()` function.
This was confusing, and made things harder later, so I changed them to
actually match strictly against `string_id<T>` like their `int_id`
counterparts. Then I fixed the one struct that happened to be using that
overload to have a proper named `deserialize` function.
My character (Alice) accidentally destroyed her skirt while trying to repair it. She wanted to craft herself a new skirt and was surprised to discover that crafting skirts is not implemented.
Full disclosure: I know nothing about tailoring. I simply copied the jeans recipe
* Replaced simple boarded door to prisoners' hideout with reinforced boarded door
* Made sure no zombie brutes spawning in the vicinity of the prisoners' hideout
The game has both t_splitrail_fencegate_c and t_privacy_fencegate_c. One is see-through, the other is not. Both used were described as "wooden split rail gate" in-game.
* Add ability to store random variable value.
* Allow add morale dialog function to use time strings
* Add ability to set item name by variable
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
* added two improvised maces
I added two improvised maces modified from the mace_inferior. Both are shorter than the base mace, both have their own prices and descriptions, and both have the belt clip flag . The Trench Mace is otherwise identical to the base, and the Simple Mace has the Fragile flag. I also added recipes for both maces based on the recipes for the knife spear/simple kinife spear.
* Update bludgeons.json
* Fix auto inventory letters only assigning wield or wear, stop duplicating letters.
* Fix unwielding item removing manually assigned letter
* Add new argument to inventory add functions for if item comes from character inventory
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
This limits the CBA workflow to using a single worker in normal operation on pushes to master so we have an ongoing record of build profiles.
Additionally enables manual triggering so we can test specific branches if desired.
* Fix graphical overmap notes display & mission arrow
* Invalidate region to properly refresh overmap windows
* Avoid SDL_RenderSetClipRect() calls
* Draw NPCs only on their Z level
* Add missing SDL_RenderSetClipRect() reset at the end of draw_om()
* Update src/sdltiles.cpp
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* Remove unneeded comment
* Add color tag support to graphical overmap notes
* You didn't see this. Don't make me rebase.
* Remove unused variables
* Fix city label & note position
* Fix NPC notes displaying when NPCs aren't visible
* Change auto-travel path to use higlight instead of cursor sprite
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* Fix some proficiency inconsistencies.
Some proficiencies were lacking their logical prerequisites. Some
others need checking, such as prof_gunsmithing_antique and
prof_gunsmithing_basic. Discovered due to #50453.
* Update data/json/proficiencies/misc.json
* Update data/json/proficiencies/tailoring.json
* Update data/json/proficiencies/traps.json
* Note re closures; gunsmithing_antique fix
Commented re `prof_closures_waterproofing` that name including
`closures` is historical artifact. Added `prof_gunsmithing_basic` as
prerequisite to `prof_gunsmithing_antique`.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
The mission was impossible to complete due to "goal": "MGOAL_GO_TO".
A mission with this type of goal when given by an NPC is an escort
quest. The only way to complete it is to talk to the quest giver while
standing in the destination overmap tile. Since Mr Lapin does not follow
the player the mission never finishes.
One alternative fix could be to make Mr Lapin follow the player but in
this case the intention was clearly for the player to travel to the
destination alone.
Mission goals rejected:
* MGOAL_GO_TO and MGOAL_GO_TO_TYPE - escort quests
* MGOAL_FIND_NPC - I do not understand how this mission goal is supposed
to work. From the C++ code it looks as if the objective of the mission
it to find the quest giver and talk to them. There are no examples in
the codebase of how to use this mission type
* MGOAL_TALK_TO_NPC - Every example of this mission goal in the codebase
spawns a new NPC and marks it as the target. I do not know how to mark
an existing NPC as the target
I also fixed the type and context of the goal_condition. They were
incorrect and preventing the mission from completing. Additionally I
updated the mission description to clarify what the player is supposed to
do in order to complete the mission.
Testing: I was successfully able to complete the mission.
So, it turns out that github fails at letting you search for things with an '_' in them, thus it looks like LEG_EITHER ARM_EITHER HAND_EITHER and FOOT_EITHER are subject to a vast depreciation conspiracy.
* matrix.yml ordering changes, title fix
* Swap last 2
I had originally put the g++-7 one before the clang++-6 because of --mods=magiclysm. Since that isn't there any more, swapping around for clang/gcc alternation and clang version breadth coverage.
* ASan, UBSan, GOLD rearrangement
UBSan instead of ASan for mac; not doing GOLD/LTO for g++ with ASan + UBSan (see #47108). Considering putting test-stage back in for MinGW.
We should also run clang-tidy across all files if any build scripts
change or if the clang-tidy workflow definition changes. Expand the
regex to cover those cases.
One PR showed an error message indicating that $commits_to_fetch was
negative. This could happen if the value is doubled enough times that
it overflows.
If we're in this situation it's safe to assume that we are not going to
get our desired merge-base, so just give up instead.
For non-PR CI runs we should expect files_changed to fail. Currently
build.sh was behaving poorly in that case.
Instead behave gracefully and print some messages to help explain what's
going on in the logs.
Compiling with -ffast-math causes clang and gcc to give different
results for proportional values.
e.g. gcc for 3.5 * 2, when stored as an integer, gives 6, whereas clang
gives 7.
Avoid this confusing behaviour and odd results in the DPS tests by
dropping this option.
If this (suggested by @GoLoT on discord) works, it will enable
compiling npc_attack.cpp on some more-picky compilers/compiler
versions.
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
* Fixes melee weapon variant inconsistencies.
Previously, the fake battleaxe had the wide technique while the legitimate version lacked it. Fake weapons should still break easily, but you should be able to do the same attacks with every version of a melee weapon so long as you possess the skills.
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* docs: update TOC
* refactor scenario date
* limit initial date to first year
* limit initial date to first year
* renamed custom_start_date
* doc for defaults
* better randomness
* random scenario date tests
* finishing touches on tests
* reduce chance for date collision
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: TOC Generator <noreply@example.invalid>
* Added construction recipe for the trash can
* Trash Can no longer labeled as plastic
* Metal trash can now separate object, old plastic trash can reverted
* Update data/json/furniture_and_terrain/furniture-storage.json
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Introduce vehicle::get_debug_overlay_data() which returns a vector of
vehicle-relative colored annotations to display.
The optimization is to not do any work when vehicle debug is not on.
To avoid confusion with do_autodrive.
autodrive is the analog to pldrive (performs steering and speed changes)
when there is no driver present (vehicle is moving due to towing,
computer, animal following or magic)
The path selection code had some weird unnecessary recalculation going
on. It also stored duplicate information in the player object and the
vehicle object. The omt_path field in vehicle has been removed since it
was redundant and unlike the omt_path in Character it does not get
serialized.
Before this change, it would allow the driver to perform actions
regardless of how many moves they have. In fact, it zeroes out the
driver's moves then allows them to build a negative deficit, only to
zero it out again next turn. This is not how the game works when a
player is controlling the vehicle manually. You can only act when you
have moves, and if you go negative it could take more than one turn
before you can act again (e.g. unskilled steering on rough terrain).
This unhardcodes the player character as the only Character capable of
driving vehicles. Together with better autodrive code, it opens the door
to potential chauffeur NPCs in the future.
Makes the copy assignment operator private. I'd like to delete it, but
it's used in the constructor.
This is a prerequisite for adding prive implementation pointers to the
vehicle class.
When you drive at a slight angle you're mostly going forward, but
occasionally move 1 tile sideways. In order to predict exactly when that
will happen you need to keep track of how many times the vehicle.face
tileray has been advanced since the last change in direction (in order
to be able to create an identical tileray in the simulation).
The += change here is a bug fix. It was unnoticed because nobody used
the steps value for anything.
* Extend/Delete in requirements
* Revert "Extend/Delete in requirements"
This reverts commit 9da0eaeb4e.
* Helen Tavrel Forge of Wonders
so many miles to go before morning
nightmare sheep and parabolan wool
adds a new store and defenders to forge
Update forge_of_wonders.json
lint
Update monsters.json
Apply suggestions from code review
Update monsters.json
Update data/mods/Magiclysm/items/generic.json
Additional security
turn in quests and more
typo
Update death_drops.json
Update fish.json
Make Forge Lord, Business Lord
Update terrain.json
Update enchanted_clothes.json
shearing json and recipes
lint
armor coverage
needs moar work
teleport charge
fixes
linting
Co-Authored-By: Salty Panda <zjadaczwatrob@gmail.com>
Co-Authored-By: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Update data/mods/Magiclysm/monsters/forgedwellers.json
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
* Update harvest.json
* Update harvest.json
* Apply suggestions from code review
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Salty Panda <zjadaczwatrob@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Part of the advantage of variants over completely removing items is that
it preserves identification information, so it's possible without taking
on an insane burden of adjusting itemgroups sensibly.
Additionally, if we want to change the configuration of variants, we
need a way to migrate from variants to other items or variants on the
same item.
This provides a way to do both.
Convert Item_factory::migrations to a map from itype_id to a vector of
migrations, instead of a single migration.
This vector can contain an unlimited number of migrations, but only a
single migration which does not specify a `from_variant`.
This way, there is only one migration for thing being migrated by id,
but multiple migrations are allowed when the selector is variants.
Add a cata::optional field `from_variant` to migrations. As mentioned
above, the presence of this field is used to distinguish the type of
migrations between by-id and by-variant.
Adjust the various functions using migrations to iterate through the
migration options and find the appropriate migration for the use.
Adjust the migration loading to overwrite non-variant migrations, and
add variant migrations to the list of migrations.
Because item type conversion happens before Item_factory::migrate_item
is called, do conversions in there again for from_variant migrations.
Duplicate the check from stacks_with, except don't check the option.
This prevents the game from obliterating variant data on save/load when
the option is off.
I don't like how this function just returns stacks_with at the end, but
I don't know a better solution.
Wind was not updating after some previous refactoring. It could be
overridden but was otherwise static.
This change makes it so that wind is now being updated when the
weather updates. It also makes the debug options for wind behave
in a more predictable manner: overriding the wind and clearing the
wind override both cause the weather system to tick and update.
I did notice that the overridden wind settings are NOT used when
evaluating the weather conditions. I could make an argument either way,
but changing it is out of scope anyway.
The code was in place to load tile variations for a multitile and
use them for all additional_tiles entries, but the functionality
isn't currently in use and I'm pretty sure it bitrotted to a
non-functional state where it just displays black tiles.
clang-tidy is one of our slowest CI jobs. It would be nice if it were
faster.
When only cpp files are changed, we can limit the checks to just those
files. When a header or build file is changed, or a new check is added,
we need to recheck everything.
To make this work, update the logic in build.sh which previously
prioritised changed files. Make it now only check changed files,
provided that's appropriate.
Also, make files_changed work correctly on GitHub, at least for PR jobs.
It will simply fail on non-PR jobs.
Two issues with serialization:
- If the entire stream was just a single integer then it would cause an
infinite loop when reading.
- When reading a sequence of optionals, if one optional was empty, it
would cause the sequence to grow until memory was exhausted without
ever consuming that input.
Fix both these issues, and add unit tests.
Demonstrate the new mapgen parameter support by randomizing the colour
of walls in standard_domestic_palette. Make white about as common as
all the other colours put together.
Previously mapgen parameters only applied to a single OMT, and could not
be in palettes. Remove both those limitations.
Now a parameter can have map_special scope (indeed, that's the default)
so that the same value is chosen consistently across any specific
overmap_special.
Moreover, parameters can be placed in palettes, and are automatically
extracted from all the palettes relevant to a particular piece of
mapgen.
Some json object have a list of ids they are defining, rather than just
one. In particular, this is common for overmap_terrain. When that
happens, index all of them.
Add a flag to track the OMT spawn location of arbitrary items.
Rewrite the the cardreader actor consuming behavior to care about
individual items, now that we're selecting based on an item attribute,
instead of an itype attribute.
Lab tunnels, city subway group spawn
* Chud/Zombie stuff
* Sewer, Lab subway
Less migo/sludge, more hunter, frogs
* Scary labs
Mutant cooperation, mondensity is a lie
* Faction/lab subway
Mi-Go and nether broke up, lab tunnels got a bit less busy
The problem matchers with GitHub actions are meant to make seeing errors
in tests easier, without having to navigate through the somewhat clumsy
interface to find the errors.
However, because the CHECK does not include the name of the item, this
is still required.
Move the CHECK to be on the line with the item name, so it is not
necessary to go through the clumsy GHA interface.
This does mean the test will not print failures and the expected value
to stdout. I think that being more compatible with the GHA problem
matchers is worth making this slightly more annoying to manually run.
The gun various gun variant work needs some standards, and we need a
good way to get those standards. So, add a script to gather data, to
help decide if guns should be collapsed or not.
This script loads all of the gun data, walks through all of the gun
data, following copy-from links to push the data being inherited into
the entry it belongs in.
After doing that, walk through all extracted entries, and output the
relevant data in a table, with some helpers for extracting the data in a
format that is more uniform.
* [Magiclysm] New Spell Effect
Summary
Mod "Adds teleport_to spell effect type and some spells"
* Linted Json
* Cleanup
* Astyle
* Update teleport.cpp
* Minor code fixes
* Astyle
* Mana cost change
* Teleport effect varies by flag
Instead of two similar teleport effects, there is only short_range_teleport, whose behavior changes based on the TARGET_TELEPORT flag.
* Update MAGIC.md
* Update src/magic.h
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Update doc/MAGIC.md
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Update src/teleport.cpp
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
* Update src/magic_spell_effect.cpp
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
* Update src/magic_spell_effect.cpp
* return in_spell_aoe to its original location
* astyle
* add piece of documentation back
Co-authored-by: Kenshkrix <kenshkrix@gmail.com>
Co-authored-by: Kenshkrix <42079267+Kenshkrix@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Still more aggressive workflow skipping
In the main build matrix, only run the full suite on C++ changes, if there are just json changes, still run the stages that depend on mod content.
Previously if the player wasn't carrying any Merch, they could be
flagged as having asked the front-merchant for help with Boris' cleanup
effort, and be told they could "sweeten the deal", but could then never
actually purchase help because the option would not show again.
This commit moves setting the `cleanup_asked` var to when payment is
actually made, and adds a "I might come back with some more Merch…"
dialog option to help guide the player.
Unfortunately this does not fix the quest for players who have already
spoken to the merchant without any Merch.
* It lives!
Range gets rewritten, the rest is to do
* Longswipe
no_adjacent and attack_chance as new variables
Head/eye hits make no sense until they can actually break your neck.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* Add effect duration elapsed info, improve Pain Effect info
Add effect duration elapsed info to info panel, add colored pain text to info panel
* Improve effect time display
Moved estimate_effect_dur() to Character, and improved implementation.
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
This function returning a sentinel value was causing UB due to integer
overflow. Also, the sentinel it actually returned wasn't the one the
docs claimed it did. Replace with an optional to reduce confusion.
NPCs would only eat if they had less than 95% of their healthy kCals
remaining, however they would still be *hungry*, and would still
complain about this, refuse to train the PC, etc. This would result in
the annoying situation of having to endure a whingy NPC until they learn
to eat for themselves, or spoon-feeding them and having them be
completely player-dependent.
This PR attempts to unify what causes the NPC to complain or not
cooperate (their hunger level) with when they eat, so we're less likely
to have NPCs complain about being hungry with food in their inventory.
* Update MSX 2021-07-19
* Update Ultica
* Update Chibi Ultica
* Move overlay ordering to its own file to avoid overriding it in future updates
* Update Retrodays
* Update apply_light_arc() to cut arc into octants.
Operates clockwise, from opening angle (center-width/2) to close (center+width/2). If opening angle isn't a multiple of 45 deg, render it to the next 45 degree angle the slow way. calculate the number of octants and the starting octant, then walk clockwise calling appropriate castLight() versions. Then, if part of the arc is still left, do it the slow way.
Todo: name things better and optimize
* Make turn_zero constexpr
* Add features to rl_vec3d
* Construct from rl_vec2d and z-coord
* Extract xy as rl_vec2d
* In-place scaling
* StringMaker support for rl_vec2d
* Add StringMaker specialization for time_point
* Add atan2( rl_vec2d ) overload
* Add units::asin returning units::angle
* Add sunlight angle calculation and tests
This is an initial implementation of sunlight_angle, which should work
OK for the first few days, but will break down before the end of the
first year.
One test plots the path of the sun through the sky at each solstice and
an equinox. This is intended as a simple smell test that's easy for a
human to see when something has gone wrong with the sun angle algorithm.
* Add analemma unit test
* Tweak sunlight calculation away from reality
Because the game years don't match real-world years, we need to make
some adjustments to the sunlight angle calculations to allow for that.
* Use logical origin of sidereal time
We had an origin of 177, but 180 makes logical sense, so switch to that
as it's easier to understand.
* Derive sidereal time from angle_per_day
Removing one magic constant.
* mean_long, mean_anomaly in terms of angle_per_day
Remove more arbitrary constants from the calculation, and document those
which remain.
* Use game year length, not real-world one
This removes one more arbitrary constant and means that the sunlight
angle calculations ought to work for other season lengths.
* Unit test for handling season length
* Base sunrise and sunset on astronomical maths
This is the first change that allows the sun angle calculations to
actually influence the game.
We switch the sunrise and sunset times to match the sun positions as
calculated by the astronomical equations surrounding the location of the
sun.
This requires changing a few other places in the code, and updating a
lot of tests.
Heavinly inspired by Hirmuolio's work in #47570, but reimplemented
rather than cherry-picked.
Co-authored-by: Hirmuolio <hirmuolio@gmail.com>
* Support eternal season for new Sun calculations
When eternal season is set, always have the Sun behave as it does on
whatever day the game starts.
* Update some comments in sun_test.cpp
* Appease clang 3.8
* Improve comments and variable names
Based on Github review.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Fix clang-tidy issues
* Assume solar time rather than timezone
Previously the sunlight angle code required you to pass a timezone.
Now, instead, it assumes the timezone is local solar time (determined by
the longitude). This makes some of the calculations simpler and the API
less confusing.
It does mean that the test cases have drifted a little further from the
'true' Boston sunrise and sunset times, but they're still fairly close.
Co-authored-by: Hirmuolio <hirmuolio@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Now that Travis has stopped running, convert the PR Travis job coverage
into new GitHub workflow jobs within the matrix workflow.
In the process, tried to refactor the workflow definition to pull more
common parts out of the individual job definitions.
helicopters already have a minimum 10% to 30% load just for
hovering or moving. Giving them an additional 100% load in idle()
makes no sense and contributes to the ridiculously bad fuel
consumption for helicopters.
* Change Hobo Stove to deployable furnature
Changing Hobo Stove to deployable furnature.
Why change: currently hobo stove was either WAY too efficient, or completely useless.
How is it useful but balanced: It deploys like brazier which means it scales to "nearby fire" efficiency now. Has a max capacity of 500ml to restrict possible burnable fuels (even plank / stout branch is way too large to fit). all burnable fuels that fit should burn quickly which will require pre-chopping the wood and setting up a "firewood source" tile most likely, meaning it's better for small / one off / emergencies rather than constant usage
Why not just use brazier: Brazier is big and heavy. This is much smaller and lighter than a full brazier making it good for general use
Alternatives: Just drop it entirely but I think there's a place for it when you don't want to carry around something as big as a brazier and you're willing to fiddle with fuel a lot in exchange.
Based on this real world recipe: https://www.motherearthnews.com/diy/how-to-make-hobo-stove-zmaz84zloeck
* json lint
auto linted using http://dev.narc.ro/cataclysm/format.html to start
* fix some bugs
* Update furniture-fireplaces.json
increase space to allow 2 splintered wood (1 burning 1 fresh) and 100 wood ash
* more linting
* allow to hold
intent is for you to be able to nest stuff in it when carrying it around. It has too many holes to hold a liquid or anything smaller than tinder, and you lose 100ml due to added bulk from the way it's built, and it can't hold as much weight as a Medium Can
* fixed recipe
should need both can and scrap
should need both saw and (awl 2 or drill 1)
* fixed typo
accidental removed charges from l-stick instead of hobo_stove
* lint
A couple of genuine fixes here, but also I had to add to_string_writable
functions for the point types, which aren't really necessary but help
make the warning message more logical.
Some of these checks were not working for the current definition of _
(the translation macro). Tweak that definition to make it easier to
detect in a clang-tidy check and update the checks accordingly.
Guns which are not migrated to variants and are not newly generated are
never assigned variants, causing them to show generic names, even when
the brand names option is set to show brand names.
Assign variants to all guns on loading, so any guns from previous
versions without variants assigned will get them assigned. Add some
additional logic to ensure that guns are assigned the variant
corresponding to their previous item if valid, and in other cases
randomly select a variant.
HUB-01/RoboFac would only accept the merchant's drive of FEMA data if
they had *not* met the player before, resulting in an uncompletable
quest otherwise.
This adds the dialog option to the `TALK_ROBOFAC_INTERCOM_SERVICES`
section, allowing the mission to complete even if the player is known.
* Add power tools
Creates and adds fake power tools to various furniture
* Allow fake_power_tool to use UPS
* Add fake_oven
* Fix fake_oven placement
* Add some tools to requirements
* Add fake_water_purifier and update clean water recipe
* Linting
* Add drilling_standard, for fake_drill_press and other tools
* Add power_saw requirements
* Change wooden beam and plank recipes
* Add recipes for water wheels (normal and large)
* Add power_saw_recipes recipe_group
For basecamps
* Revert "Change wooden beam and plank recipes"
This reverts commit 210ef667db.
* Add alternative wooden beam and plank recipes
* Update power_supplies.json
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
* Incresed volume of western holster main pocket to 850ml (#48532)
* Increased volume and length of pocket in western holster (#48532)
* Tweked volume slightly to fit Lemat revolver
* Enable bugprone-branch-clone
This check looks for multiple branches of an else-if-chain or switch
that are the same. This is often a sign of a copy/paste error.
The cases that hit in these changes did not include any copy/paste
errors, as far as I could see, but they did highlight quite a few cases
where the code could be usefully refactored. I did that, and in other
cases I just suppressed the error.
Did fix one small bug related to furniture moving weariness, but that
was just because I happened to be pointed at nearby code, not because it
specifically related to the check.
* Move utf32_to_utf8 to json.cpp
When I deduplicated this function I previously kept the version in
catacharset.cpp, but that breaks the link for the json formatter, so
instead keep the version in json.cpp.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Several of the pieces of the graphics randomization seeding were using
the same simple hash of a point. Factor that common code out into a
lambda. This ought to make the code more efficient, because it reduces
calls to e.g. map::getabs.
cata_tiles has an origin point o. When drawing the regular map this is
a map-local coordinate. When drawing the overmap this used to be always
zero. After this change it now uses the global OMT coordinates of the
north-west corner. This is helpful because:
* It simplifies draw_om which no longer needs to keep track of omp and
pos separately; they are the same value.
* It allows pos within draw_from_id_string to be interpreted
meaningfully. This will allow further features.
* Requested Changes
Changed the hotcut back to swage in any form it made sense(fixed my major f up with commits LOL)
* Update parts.json
Merge conflict
* Update parts.json
Syntax update
* Update metalworking.json
* Update locations_commercial.json
Final syntax fix on this weird issue.
* Update metalworking.json
Accidentally had duplicate swage. Meant to have a hotcut added. Fixed now.
* Recipes
Missing recipe changes.
* Update recipe_groups.json
* Update parts.json
* Update tools_hand.json
Restored swage recipe and added a hotcut one.
* Update tools_hand.json
Recipes were backwards lol
* Update tools_hand.json
Fixed washboard issue and restored a randomly deleted recipe.
* Update parts.json
Syntax hiccup
* Update tools_hand.json
End format error
* Update tools_hand.json
Missing continuation punctuation.
* Lint
Json delinting
* Update metalworking.json
Trailing line break
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
* 2 spell upgrades for the animist
* halfed all the the summoning spells' casting time
you can't make them follow you so letting you cast them a bit faster doesn't seem like a bad idea
* lower difficulty on decayed pouncer; increase it on spearcat hunter
* Crusader Spells
Adding Sword of Judgement and Holy Shield to Crusader.
* Create Crusader.json
* Update martialarts.json
Updating for summoned Magiclysm weapon.
* Update martialarts.json
* Update attunements.json
* Update Crusader.json
* lint
* adjust the spell to be more expensive
* a summoned item should not have a price
Co-authored-by: KorGgenT <curtis.r.merrill@gmail.com>
Changed messages to be more consistent and accurate. Now, they always mention the body part that is hit, and the messages for no damage hopefully make it clear that they did no damage because of armor.
Also added messages for dodging.
* Extend/Delete in requirements
* Revert "Extend/Delete in requirements"
This reverts commit 9da0eaeb4e.
* Valentine Cards (#47438)
* Add a proficiency for handloading, and a new profession (#47244)
* Drug Dealer Profession (#47255)
* Adds hallula, a type of bread popular in Bolivia and Chile
* Arm mounted pouch (#46946)
* Tazer drone iii (#47353)
* Added Gelatin and Several Gelatin Based Recipes (#47080)
* Content: bread in a can (#45680)
* New random mission (#44999)
* Mycus fruit Juice (#44952)
* Milleable corn (#46254)
* Talk Tag Additions (#47010)
* Fix typo in Valentines Card (#47583)
* (CrazyCataclysm) Crazy Hallucinations (#47386)
* Mealgurb (#47685)
* Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527)
* Prepare npc, spell, character, and item for new ai (#47207)
* Make acetylene torch cut metal walls. (#46255)
* Added disassembly recipes for several items (#46316)
* Celsius temperature for freezing point (#47028)
* Stand up peek (#47257)
* [AFTERSHOCK] Basic Ballistic Weapons (#47559)
* makes glass walls and glass doors constructable (#47692)
* Crackers as bread and jam&cheese sandwich (#47649)
* [Aftershock] misc typograpical fixes (#47783)
* Tweaks for teas (#47848)
* Have travis run for 0.F-dev
Currently, .travis.yml has a 'development' branch specified as one to run tests for; the current equivalent is the 0.F-dev branch.
* Tweakes to copper and metal pipes. (#47825)
* Fried eggs deluxe, sandwiches, and condiment list (#47786)
* Homemade toastems, buttercream frosting and recipes (#47696)
* Chocolate Cow don't drop "cow pies"
* Remove unused FATIGUE energy source from spells
* [Magiclysm] add owlbear origin snippet (#47752)
* [Magiclysm] add lesser banishment spell, buff greater banishment (#47537)
* Unhardcode bio_heatsink and bio_climate
* Hunting lodge Location (#44378)
* fungal evolution (#47247)
* Add book strap carrier (#47665)
* Partial mine jsonify; new zombie miner (#47790)
* Moved mine_entrance OMT from the list of hardcoded locations to industial locations
Also removed mine_shaft OMT and replaced it with mine_shaft_middle and mine_shaft_lower OMTs.
Also added mine_entrance_roof OMT.
* Added mine_entrance and mine_shaft to the list of obsoleted terrains
* Added a zombie miner and its death drops
* Created a json-version of mine entrance and its roof
* Created a json-version of mine shaft (middle and lower variants)
* Changed overmap special definition of a mine to include new json chunks
* Applied migration of hardcoded mine_entrance and mine_shaft OMTs to new json variants
* Made hardcoded mine chunks generate to the west of lower section of new mine shaft OMT
Also removed mine_entrance and mine_shaft from the list of hardocoded mapgen.
* Completely removed build_mine_room function as all mine rooms are now defined in json
Also removed hardcoded generation of mine entrance and mine shaft.
* Removed mentions of mine rooms from mapgen.h
* Updated alt_map_key mod
* Updated graphical overmap mod
* Added missing harvest
* Appease clang and constify
* Quickfix
* Appease clang one more time
* Add 0.F-dev to matrix.yml
(Getting 0.F-dev working with Travis appears to require additional settings by someone with permissions.) This change enables both pushes and pull requests of 0.F-dev to get checked by the General Matrix. As it is, if one bases a PR off of 0.F-dev, it doesn't get checked by Github.
* 0.F-dev workflows (#47875)
* Alter brown bread recipe to match canned version
Fixes#47874.
* Mine entrance expand (#47928)
* Added mine_materials item group
* Added Trolley vehicle
* Expanded and tweaked above-ground and underground levels of mine entrance
* [DinoMod] Mushroom Madness (#47907)
* misc typograpical fixes
* body pillow recipe makes makeshift body pillow now (#47917)
* Traffic Bollards and an example of deployment (#48017)
* add description for Uyen's missions
* JSONize some trap features, replace trap int_id externs with string_ids (#47933)
* JSONize trap sonar detectibility
Add trap flags - just the same as normal flags, but for traps! Stick
them in their own separate file to avoid confusion.
* JSONize trap memorial messages
light_snare and heavy_snare seem to no longer exist, or I couldn't find
any reference to them but this and tilesets.
Updated dissector trap message, and added a trap message to some traps
(the hallway ones, one or two of the similar-but-not-the-same variants
of existing traps).
* JSONize trap temperature convection
Not quite sure how to describe it, went the lazy route.
* Move traps externs from int to string ids
When loading the game without this content, these will now only give an
error on the use of these, instead of at the end data loading for traps.
Previously there were performance concerns with this, but this should be
fine since #44261 - see #44500.
tr_null must remain an int id, as it used in the string to int id
conversion. This is fine, as it will always be loaded (it's in
data/core).
Move the ledge trap over to data/core as well, because everything will
need the 'open space' trap.
* Clean up character mutation gain a bit
Reduce duplicated code.
I presume there's a reason that set_mutations didn't just call
set_mutation, and the only difference is that it doesn't do the cache
updates till the end, so preserve that behaviour.
* Allow CBMs to specify mutations that prevent installation. (#47822)
* Move CBM installation checks to Character
Reduce code duplication, encapsulate things better, and make this
available outside of the inventory menus.
* Allow mutations to prevent installing CBMs
Bionics can currently cancel mutations when installed, but can't have
mutations prevent installation.
* Spiral mine jsonify (#48003)
* prevent bell spam (#47987)
* Note that vat is required for fermentation in vinegar brewing
* Unhardcode ease of sleep
* whipped cream
remove aerosol whip cream
frosting requirement
Update slings.json
Update data/json/recipes/recipe_food.json
Update data/json/items/comestibles/dairy.json
Revert "remove aerosol whip cream"
This reverts commit b8570f6c55c1d6daaea71957bdaec6c05d899b0d.
Update misc.json
Delete recipe_obsolete.json
Delete misc.json
Delete slings.json
Delete ammo_types.json
Delete enchantments.json
Revert "Delete recipe_obsolete.json"
This reverts commit 3119fdc53ffe8e079a1e26b1d31dd2347327201d.
Revert "Delete misc.json"
This reverts commit 71b811b5e0c6b7476d86a61d513a29d44db5b6d0.
Revert "Delete ammo_types.json"
This reverts commit 848c739f5e6f85dd99a0fb273b6262ae69810834.
Revert "Delete slings.json"
This reverts commit 7c91194a2e312d98a396dcddc990a6d43b242e14.
fixes
Co-Authored-By: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-Authored-By: casswedson <58050969+casswedson@users.noreply.github.com>
* Update data/json/items/comestibles/dairy.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Update slings.json
* Update junkfood.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: slimeboy460 <68845349+slimeboy460@users.noreply.github.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
Co-authored-by: Jamuro-g <76928284+Jamuro-g@users.noreply.github.com>
Co-authored-by: Xenomorph-III <sam1998may@gmail.com>
Co-authored-by: grawprog <77870049+grawprog@users.noreply.github.com>
Co-authored-by: Xaleth <countolaf17@gmail.com>
Co-authored-by: El-Jekozo <72350516+El-Jekozo@users.noreply.github.com>
Co-authored-by: RobertoVGoulart <robertovgoulart@yahoo.com.br>
Co-authored-by: Zukulini <dragon.fuego.yo@gmail.com>
Co-authored-by: klorpa <30924131+klorpa@users.noreply.github.com>
Co-authored-by: UmbralReaper <67179462+UmbralReaper@users.noreply.github.com>
Co-authored-by: SariusSkelrets <68650913+SariusSkelrets@users.noreply.github.com>
Co-authored-by: Fosheze <50811445+Fosheze@users.noreply.github.com>
Co-authored-by: Lamandus <33199510+Lamandus@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Co-authored-by: NeviNovat <51816321+NeviNovat@users.noreply.github.com>
Co-authored-by: Karol1223 <68503002+Karol1223@users.noreply.github.com>
Co-authored-by: Hirmuolio <22011552+Hirmuolio@users.noreply.github.com>
Co-authored-by: Charlie Gardai <32105250+Moltenhead@users.noreply.github.com>
Co-authored-by: Mom-Bun <43492737+Mom-Bun@users.noreply.github.com>
Co-authored-by: OromisElf <oromis.der.lehrer.eragons@freenet.de>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Fris0uman <sthapplz@gmail.com>
Co-authored-by: Ramza13 <52087122+Ramza13@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
Co-authored-by: FuelType-Memes <42695732+FuelType-Memes@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: casswedson <nelson1003403634@gmail.com>
Co-authored-by: akirashirosawa <38557723+akirashirosawa@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Move the player so game::load_npcs will actually spawn the NPCs.
Add REQUIREs to make the game not crash on failing to spawn NPCs.
Remove the weather setting because it doesn't change the tests, and
causes vision tests failures due to side effects!
Adjust the values of the m16a4 test to start passing.
* Create design-doc.md
* add place names
* starts adding regional map settings data.
* Update alberta_regional_map_settings.json
* Adjust monster settings, and update mod document since I had to figure this out
* make place names an md file until supported
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
* Boomer glutton and monstergroup additions, added spell and emit field
adds in the new boomer glutton, and adds a monstergroup for the boomer to evolve into. adds in a sludge emit field and a new spell for the glutton to use
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Summary
none
Purpose of change
All reloaded ammo have a 10-20% decrease in overall stats while 5.7 hand-loaded gets an 80% reduction in AP which makes it's use really underwhelming
Purpose of change
Testing
Load in game.
Additional context
Arbitrary value chosen 0.2 -> 0.8
Clang-tidy alerts on this preventing optimization, but this code is very rarely executed, so the performance impact is negligible, and complying with the directions causes build errors.
It causes crashes, and as delicious as it is, the only spell I've ever managed to cast is a charm of room clearance. And that caused my wife to make me sleep on the couch.
Before these changes feints would trigger if and only if a feint
technique was available, and show a message if and only if the first
available feint technique was valid. Now they should trigger and show a
message if and only there is a valid technique.
* Ability to configure user-defined map extra symbols
Basic UI (uilist-driven)
* UI code changes
* <S>witch only toggles the map extras option
But prompt the user on exit if all auto notes are disabled
to enable them, when auto notes (map extras) are enabled.
UI doesn't fit "(map extras)" clarification.
In any case, at the moment only the map extras auto notes
are configured in this window.
- Basic fried eggs are now as much fun as scrambled eggs (3)
- Fried eggs sandwich (aka "on toast") matches deluxe scrambed (4)
- Deluxe fried eggs has eggs, salt, cheese/veggies, mushrooms or onions, and conidements. It's an absolute delight, and is now just below a deluxe sandwich in fun (10)
- Deluxe fried egg sandwich has all of the above, PLUS BUTTERED TOAST. If this isn't at least as good as a deluxe sandwich, I don't know what is (12)
Rather than deriving the rotation and subtile from adjacent terrains, we
instead compute them based on the properties of the oter_t. This
entails yet another table of rotation and subtile values, but does a
better job. In particular, road connections to other oter_ts
(buildings, bridges) are now rendered correctly, where they were not
before.
Previously we relied upon the symbol for fallbacks for linear terrain,
but we can do better by using the same get_rotation_and_subtile
infrastructure that exists for e.g. walls in regular map rendering.
This fixes the appearance of linear terrain.
* lockpick_result and lockpick_message json
* lockpicking use new lockpick_result and lockpick_message fields
* hardcoded to json lockpicking conversion and open/locked gunsafe
* Fix JSON errors, DPS test
Add a missing comma, two spaces between sentences, and fix the DPS
test.
The DPS test probably could use something more than just matching the
value, but that's all I'm doing for now.
* Fix partial proficiency tests
'practice_proficiency' was not practicing the correct amount due to
focus or other changes when this test was run in conjunction with other
tests.
Add a function to unconditionally practice a proficiency a certain
amount, and use it.
* Fix old-style monster death function
* First
* Revert "First"
This reverts commit be374044f4.
* Revert "Revert "First""
This reverts commit f904c037af.
* Works!
* Astyle
* Doc
* ()
* Apply suggestions from code review
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Hit msg
* Mob 1st
Don't look at it too hard, just moving PCs
* Monster second pass
* Lint
Mostly just to get the tests to look at the important bits
* Hit messages 2
Hopefully that got all that matter, the hardcoded special attacks will stay a bit weird
* Update nether.json
* Hunter 2
Mostly fine, ranged todo
* Monstergroups
Subway's pretty barebones, but that's a followup PR
* Final
* Update misc.json
* Update misc.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Add makeshift blindfold made from natural materials
# If commit applied
It will provide a way for survivors lost in the woods a means of making a blindfold to sleep when it is still bright outside.
# Why change was made
Players who wish to play wilderness scenario currently have extreme difficulty making a blindfold.
# How this fixes issue
Provides a means of making a blindfold from natural materials easily found in the forest.
# References
#48846 Add a cordage blindfold
* Forgot to lint JSON
Made changes to correct linting
* Text editor causing linting issues
This is my first submission so I have to get my tools in line with requirements apologies.
* Revert "Forgot to lint JSON"
This reverts commit 4f807cb611.
* Revert "Revert "Forgot to lint JSON""
This reverts commit c40c047a04.
* Changes to fix space in id
Fixed ID as requested.
* Update head.json
* Update data/json/items/tool_armor.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Update data/json/recipes/armor/head.json
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Rework brewing for greater realism
* brewing.json: Don't create mass out of nothing for fruit wine must.
Previously we used 1 juice (125ml) and ended up with 750ml of must.
We now use 2 juice (250ml) and 2 water (500ml) for 750ml of must.
Co-authored-by: Korhaka <thurak126@gmail.com>
* Refueling menu first pass
* Get refueling menu to actually refuel
* Desentangle fueling and eating
* Add refueling to consume menu
* fix error?
* Remove unused static
* remove unused variable
* Partial fix of missing fallback in the graphical Overmap
* Don't specify zero subtile for overmap terrains
This is misleading the rendering code into picking the wrong subtile.
The correct value for "I don't think there is a subtile" is -1, not 0.
Co-authored-by: Fris0uman <sthapplz@gmail.com>
* create npc_attack class
This implements a class that owns all of the logic for an npc evaluating the best weapon to use in the moment.
* Tests for npc_attack
* add a debug mode that shows potential values
* Added Pack Hunter Mutation
* Linting and astyle
* Applied suggestions from code review
* Revert "Applied suggestions from code review"
This reverts commit 47f04e80b1.
* Revert "Linting and astyle"
This reverts commit a1b4978eee.
* Revert "Added Pack Hunter Mutation"
This reverts commit 7e159ad155.
* Based on Code Review, rolled back all changes and redid implementation putely in JSON
* Ensure the Pacifist trait cancels Pack Hunter
Co-authored-by: Peter Hamm <peter.hamm@m-chair.de>
* tent pole take 2
* activities_hobbies
* locations itemgroup
* recipe_others
* materials requirements
* restore mine_materials changes
* restore armrig changes
* restore welding and bodypillow changes
* can build three from one again
* use "LIST" for requirements in recipes
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/JSON_INFO.md#recipes explains it
* lint recipe_others
* rebracket requirements
* add adhesive to tent requirements
* separate recipes
* reformat recipes
* simpler recipes
* simplify tent parts
* recipes simpler still
* no requirements
* uncraft broken tents
* Added a woodwork variety of craft shop.
* Added an extinguisher spawn and a new line to match the style.
* Corrected spacing
* Toned down item spawns, added items to woodcrafts itemgroup and removed unnecessary rows and terrain from 1x1_woodcrafts_display_canoe.
* Removed a naughty comma.
* Removed rude comma and linted.
* Added a roof along with item spawns and a new forklift spawn. Made two palettes to encompass the buildings and general orchard. Changed the road layout to make it look slightly more natural.
* Adjusted vehicle spawn chances from test numbers.
* Simplified arrays and removed less accessible nested chunk spawns.
* Eventually worked out how to lint.
* generalize to comestibles
* astyle
* generalize more foodstuff
* revert some irrelevant changes
* some tidying up
* unused function
* reduntant check
* freezing F to C
* freezing F to C
* freezing F to C
Python uses the ANSI code page encoding by default on Windows. By explicitly
declaring the encoding as utf-8 we avoid errors relating to utf-8 down the road.
See https://docs.python.org/3/using/windows.html for more information.
* Allow blocking of some zombie specials
Allow blocking of some zombie specials
add dodgeable and blockable flags to monster specials
flip dodgeable and blockable defaults
* Update data/json/monster_special_attacks/monster_attacks.json
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
* Allow access to JsonArray members as JsonValue
* Create load_weighted_list function
This is a generic function for loading a weighted_list from json that
can be used to reduce code duplication and ensure json consistency.
* Remove undefined declaration
This function had no definition and no callers.
* Implement "parameters" for mapgen
This is an initial implementation of parameters for mapgen, which
currently has those parameters act more like variables than parameters.
Essentially all it currently permits is to choose a terrain at random
and use that in a palette. Thus choosing a thing at random which
applies to an entire map, rather than choosing at random on a per-tile
basis.
This is the first step towards true parameters for mapgen; hence the
currently-misleading name.
* Add docs for new parameters feature.
* Minor grammar/style fixes
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Update mutations.json
* Small chimera mutation rework
Added "patchwork skin" mutation instead of fur and scales, which combines both mutations at reduced effectiveness. Advanced mutation combines them at full effectiveness to represent thicker fur/scales.
Added Large to chimera, since Chimera line is partially based on Lizard and Cattle (horns/hooves), and both of them have Large.
Added "valid: false" tag to hyper-metabolism alternate mutation to prevent endless mutation swapping.
* made patchwork skin work properly
* linted
* Replace mres with itemgroups
* fix all the things
Not the solution I wanted, but it works
Also aluminum foil
* Apply suggestions from code review
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* move mres their own SUS file
no remaning/comments SUS itemgroups have
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Populated Bone Skewers into recipes, made Skewers millable
Utilized skewer_bone as a 25:1 replacement for bone_tainted or bone_any, in recipies where chemical, rather than physical properties were required, with 200% tainted penalty.
Make skewers 25:4 millable tainted bone meal, to match up with normal bones.
Added bone skewers to charcoal recipe utilizing kiln. 25:1 to bone.
Also, with fertilizer_liquid, added meal_bone_tainted, with 200% penalty.
* Added light industry as possible start location
* Corrected spelling of 'Industrial'
* Added Light Industry to Safe Place
* Add welding googles to tools_mechanic
* fix comma, 2x googles chance
* googles -> goggles
* re-add s_lightindustry_scen.json
* re-add overmap defs for LI
* diff (scen)
* update the defn of LI start location
* re-add LI OM special defn
* Update chemistry.json
* Fix terrian defn
* Encapsulate map::drawsq() arguments and clarify their meaning
* Split map memory into submap-sized chunks
Note: this naive implementation significantly lowers FPS
* Optimize map memory access
Move memorized submaps that would be
affected during drawing into a 2d array.
* Save/load memorized submaps; migrate old mm file
* Remove leftovers from map memory limit
* Some map memory cleanup
* Don't save empty mm submaps
* Deallocate far-away mm submaps on save; report save failure
* Rework tests for map memory
* Don't re-allocate region if old region contains required submaps
* Remove map_memory.h from avatar.h
* Rename memorized_submap -> mm_submap
* Rename mm_submap::clean -> mm_submap::empty, add comments.
* Improve drawsq_params interface
* Remove map_memory.h from lru_cache.cpp
* Add function for rectangle overlapping
* Save mm_submaps in regions
* Fix save/load not using avatar's global pos, improve docs.
* When saving, compress mm_submaps using RLE
* Simplify map rendering in ascii mode
Collect map::draw code in one place, simplify indexing/bound checks.
Remove the "batch drawing" optimization: it doesn't help with drawing, but harms code clarity. Instead, convert all relevant draw methods to use 'wputch' and rely on caller to position the cursor properly.
* Memorize off-screen tiles in ascii mode
* Fix copypasted code
* Fix tile memory saving code, minor cleanup.
* Add debug logging for tile memory operations
* Fix broken saving for tile memory submaps with z != 0
* Lazy allocation for tile memory submaps
Co-authored-by: olanti-p <olanti-p@yandex.ru>
* Balance quarterstaves
Remove durable melee, reduce discrepancies between quarterstaff and staff sling, add staff sling to quarterstaff martial arts, adjust quarterstaves according to wood density and recipe components' weight/vol
* Update dps tests for quarterstaves, add tests for sling staff
* Update data/json/items/ranged/slings.json
* uniformed soldier zombies for military bases
* Fixing mistakes, changing up the monsterdrops to be better
* Update zed-classic.json
* Update zombie_milbase_personnel.json
* Now with hats!
* whoops
* Changed them to zed soldier folder, now copy from pilot instead of regular zeds
* Updated drop list
* Update data/json/monstergroups/military.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
* Update data/json/itemgroups/Clothing_Gear/clothing.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
* Update clothing.json
* whoops, again
* Linting files
* Update data/json/monsters/zed_soldiers.json
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
* Make most of the crafting timing tests ignore missing prof
These tests are too brittle and will break any time there's a change in
the proficiency penalty formulas or proficiency progression. This causes
excessive maintenance burden. A single such test should suffice.
* Partial proficiency mitigation
* Rename get_proficiency_level
* Use 1 decimal for missing prof penalties in crafting UI
Remove compatiblity for the 'armor_portion_data' key, it's no longer
necessary.
Add an override to assign_coverage_from_json to accept a
cata::optional<body_part_set>, so I don't have to waste lines doing that
where I use it.
Drop support for copy_from modifying elements of armor_portion_data
within islot_armor::data.
I can't figure out a way that copy-from as a behavior is a better thing
to have than being forced to explicitly enter all the data when it
should be different for an armor.
There's no way to tell:
1. If the child object wants to modify the armor portion data when it
specifies it's own armor portion data (instead of write it's own)
2. If the child does want to modify the data, which portion it is trying
to modify.
And if we allow it to modify the data, it's impossible to say you don't
want a portion.
It's just not something that can be handled without creating all sorts
of non-obvious traps, and I think it's better to avoid it entirely.
Move armor_portion_data loading to a deserialize function, now that it
doesn't need to have access to islot_armor stuff (because of copy-from).
I want to make changes to how armor values are specified, and to reduce
maintenance, I don't want to keep two separate interfaces for specifying
armor values.
Remove the format where various armor data is specified inline in the
item definition, and require it to be specified in armor_portion_data.
Drop support for copy_from modifying elements of armor_portion_data
within islot_armor::data.
I can't figure out a way that copy-from as a behavior is a better thing
to have than being forced to explicitly enter all the data when it
should be different for an armor.
There's no way to tell:
1. If the child object wants to modify the armor portion data when it
specifies it's own armor portion data (instead of write it's own)
2. If the child does want to modify the data, which portion it is trying
to modify.
And if we allow it to modify the data, it's impossible to say you don't
want a portion.
It's just not something that can be handled without creating all sorts
of non-obvious traps, and I think it's better to avoid it entirely.
* Increase weight and decrease volume of copper wire.
* Add manual wire drawing as an option.
* Change scrap_copper and copper to more appropriate values and handle the fallout.
* scrap_copper is now 50ml instead of 62. Drop rates have been increased to accommodate.
* scrap_copper now requires 50 copper instead of 25.
* copper_wire, copper_rod, and cable weight and volume fine-tuned.
* Obsolete previous cable recipe.
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* Allow specifying default terrain per z-level
Allow regional_settings to specify the default overmap terrain for each
level, and add a solid_earth overmap terrain (and soil terrain to fill
it), representing a soil layer on z-1.
* Fix hardcoded overmap terrain generation
Overmap terrain features like sewers and ants needed some changes made
to the overmap generation code to work with the new z-1 soil layer.
* Replace rock with earth on z-1 JSON mapgens
Replace rock floors with concrete floors in artifical structures, and
with dirt ones in natural structures.
Wall in (and shift rooms a bit to fit) the missile silo with metal walls
on z=-1 - bare earth walls don't feel correct for a missile silo.
* Move hardcoded slimepit generation down 1 z level
Add a new JSON-ized top of the special - an open-topped slime pit
leading down into the hardcoded special on z-2.
* Adjust overmap terrains for z-1 soil level
Some terrains are meant to look like solid rock, but that doesn't make
sense anymore on z-1. Make them look like solid earth instead.
* Update hardcoded mapgen for soil on z-1
Sewers could probably use some proper walls, but I'll leave that for
someone else to update.
- Adds a `veggy_any_corn_uncooked` requirement, which includes fresh corn (on the cob), kernels, rehydrated kernels, and canned corn.
- Use `veggy_any_corn_uncooked` in `veggy_any_uncooked`
- Use `veggy_any_corn_uncooked` in corn casseroles and pan-fried corn.
When no encumbrance is specified, max encumbrance defaults to 0 -
however, if only encumbrance is specified, it defaults to -1.
This seems like incorrect behavior, and it certainly doesn't match the
behavior of non-armor portion data encumbrance.
This fixes 2 failing iteminfo tests, because their encumbrance now
(correctly) increases with contained volume.
Now that power storage bionics are proper bionics, the horrible thing
being done here where the bionic is activated by index is no longer
working. Bump up the index by 1, because the power storage is taking up
index 0.
0 - bio_power_storage
1 - bio_faraday
* Rewrote aux_nested.json's destroyed_x mapgens and replaced them with a generic destroyed_furniture which pulls straight from the furniture bash itemgroup rather than mimicking it.
* Reverted accidental removal of destroyed_glass_door_wall.
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
* Add power tools
Creates and adds fake power tools to various furniture
* Add fake_oven
* Add fake_water_purifier and update clean water recipe
* Add military helipad basecamp
* Linting
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.
Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
* Fix the position of a "cd" in the workflow guide of CONTRIBUTING.md
Setting a commit template outside of a repo will result in a fail.
It is very minimal but it helps keep the guide useful to everybody.
No links
Fix "cd" command position in CONTRIBUTING.md
`armor_portion_data` is a really long key name, and it doesn't need to
be that long - it's quite annoying to type as is.
Change the parsing code to accept it, and update the script to use the
new, shorter key.
* Clean up convert_to_portions.py
Replace the class with a dict, and remove all the now uncessary handling
and parsing code.
More cleanly handle invalid JSON errors and the file being incorrectly
formatted for the script to parse.
Condense failure conditions in our JSON parsing before extracting the
portion data, and drop a level of indentation in the driver code.
* Fix handling of encumbrance with only max_encumbr
It's legal to specify max_encumbrance without specifying encumbrance in
the old format. Handle that correctly.
* Support separate graphical tiles for sounds heard above/below visible Z level
* Fallback to default icon if the above/below one are not in the set
Co-authored-by: olanti-p <olanti-p@yandex.ru>
* Balanced Tactical Helmets
Balanced the tactical helmets, to make them less useless.
* Balance tactical full helmet encumbrance
26 seems to little for the protection that it provides, also considering the increased weight of the helmet.
I am not sure what I need to do, but the name in variants does not
accept plural forms, so I needed to convert the 610 to use just 'str'.
The Glock 40 is the only item defintion being dropped here - some of the
generic names could make be looked at (Colt Delta Elite, EAA Witness in
particular could be different), but I think they're fine.
If an overlay set all the map_extra weights for a particular category of
map_extras to zero, then that would lead to a debugmsg error. This was
happening if ruralbiome was combined with classic_zombies. The subway
map_extras from ruralbiome were only ones which are disabled by
classic_zombies.
Now detect that case in the apply_region_overlay and reset the chance of
a map_extra to zero to avoid the error.
When multiple palettes were listed for a particular map, the later
palette entry of the format_placings map would overwrite the earlier
one. This had gone unnoticed until recently when furniture and terrain
started to be implemented via format_placings, which caused many more
entries to exist. Maps using multiple palettes now lacked furniture
because the other palette added items. This affected the LMOE shelter,
for example.
After this chance, the palettes' format_placings entries are
concatenated, rather than replaced. This should mean that all the
palettes' entries take effect.
Tested in the LMOE shelter and it seems to work fine.
A lot of times the first question I ask when debugging something is
'What version are you using?' - this should answer that question without
needing to ask it a lot more.
In the hope of eventually removing the assign() functions, and expanding
support for generic factory (and continuing to support existing use
cases), generic_factory needs to support relative and proportional.
To do this, do some template vodoo.
Create two templated structs, and take advantage of SFINAE (yeah, I had
to look that up) with these to determine which template function to use.
Three basically discriminate between whether or not the type can specify
value proportionally or relatively.
For proportionally, this is whether or not the type can be multiplied by
a float, and for relative, this is whether or not the type can use the
+= operator with itself.
Also, add some error checking for when a proportional value is
inappropriately specified.
Containers using the reader functions do not have proportional and
relative support, because I'm not sure of a use case where that ever
makes sense.
Huge thanks to jbytheway for helping me use template vodoo to accomplish
this.
Classic zombies was setting the weight of various map_extras to zero.
This makes sense, but it was also setting the chance of map extras on
certain extras types for every region. This is problematic because some
regions' extras types lacked any map extras, so setting the chance
non-zero led to errors.
Change the classic zombies mod to just set the extras weights and not
set the chance, so that the regions with no extras would remain at the
default chance of zero and no errors would arise.
As a side-effect, this dramatically increases the chance of field map
extras for the classic zombies mod which had become out of sync with the
base game, which is probably an improvement.
If map extras are specified with invalid weights, this can cause a
runtime error when an extra needs to be selected. Bring that error
forwards to validation time to make it more reliable.
Based on adjust_values.py
I want to make changes to armor_portion_data (add more stuff to it), so
I don't want to maintain two separate JSON interfaces for it.
Add a python script to ease conversion from the old format to
armor_portion_data.
It isn't currently possible to load a world more than once without
restarting the game, because the enchantment factory isn't being
cleared, and Inline enchantments complain if one with the same name
already exists.
* llama support files
Some helpful files for anyone who wants to build CDDA using llama, a
tool for outsourcing builds to Amazon Lambda.
* Link to llama guide from COMPILING.md
Rewrite get_all_mods to return multiple lines of output. Two total
conversions should not be in the same line. The expectation is that we
run the tests loading all the mods in each line.
* Re-enable cata-combine-locals-into-point
As part of the LLVM 12 port, various changes were made to our
cata-combine-locals-into-point check. This made it better at detecting
more cases, so it had to be disabled. This re-enables it, and makes all
the corresponding changes.
Terrain/furniture examination has long need a system where, instead of a
hardcoded action, the changes are performed based on data specified in
the terrain entry. This adds that system.
Add a virtual iexamine_actor, from which subclasses inherit, depending
on the type. This is in large part based on the iuse_actor
infrastructure.
This contains a string informing what type the actor is, for querying
whether a terrain or furniture has this actor and for determining what
subactor to load.
As an example here, the carder iexamine function is converted to be an
examine actor.
We have the GitHub CI set up to upload the binaries generated by a
failed build. This is intended to help people debug test failures, but
when the compilation fails there is no binary to upload. In that case,
GitHub gets distracted by the upload failure and doesn't automatically
jump to the relevant failure.
Reconfigure the upload step to ignore errors due to file not found.
We had only 13 epitaphs, this commit adds 16.
Most are from https://stoneletters.com and I created a few.
I let the reviewer(s) decide which one are OK.
* Port code to emplace_back
This is clang-tidy making automated changes to convert push_back into
emplace_back whenever the argument to push_back is either a constructor
call for the type in question of an expression of a type implicitly
convertible to the type in question.
This should eliminate one move-construction of the inserted object for
each call.
* Enable clang-tidy modernize-use-emplace
Catch2 provides a customization point for converting our types to
strings by specializing the StringMaker template.
We have some specializations in stringmaker.h, but this feature was only
working intermittently. I finally figured out that was due to an ODR
violation. The test files that didn't include stringmaker.h were
compiling a different specialization than the ones that did.
Re-jig the test includes so that any file including catch.hpp also
includes stringmaker.h, thereby ensuring that the custom
specializations are used everywhere and there is no ODR violation.
I achieved this by adding a new cata_catch.h header and making all
existing headers include catch.hpp via the new header.
* Initial check for static int_ids
int_ids with static storage duration are dangerous because they can
start to refer to the wrong thing when game data reloads. This has
caused problems in the past.
Add a check for such variables, and some tests.
* Remove some static int_ids
Fix issues detected by new check by replacing some static int_ids with
their respective string_ids.
Some were just unused, so got deleted instead.
Some cases suppressed, including the furniture and terrain ids, since
they were the most numerous and widely used, so that seemed the riskiest
change.
* Enable clang-tidy readability-isolate-declaration
Enable this clang-tidy check and apply the changes it suggests.
Perform some minor refactoring on the result to move some declarations
to first use.
* Refactor some point code
These changes were suggested by clang-tidy as a result of the earlier
tweaks to isolate declarations.
* Triage readability-braces-around-statements
I tried running this clang-tidy check. It caught only one debatably
useful case and had two false-positives due to a bug. This is mostly
because this situation is already covered by astyle.
I decided to take the opportunity to add comments for each of the
disabled checks where we've decided we don't want to enable them. This
one could be enabled once we're using a newer version of clang-tidy.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* Omit tests that are failing on Mingw
These string_formatter tests fail on Mingw and it looks like it's simply
a bug in the standard library there. I don't know that we can
reasonably fix them (short of implementing printf ourselves) and they're
showing up in the GitHub UI for every PR, which is potentially confusing
for contributors.
* Remove !mayfail marking on string_formatter test
This should no longer be expected to fail, with the troublesome tests
excised.
Several of the top-level save files were not providing filenames with
their JSON error messages, because the filename was never passed to the
JsonIn constructor. Arrange for it to be so passed, to improve those
errors and assist with debugging.
* Improve error message for JSON files with a BOM
Previously, JSON files starting with a BOM would have a strange and
unhelpful error message that could easily confuse new contributors who
had edited a file in Notepad.
Add a check for this case and try to provide a more helpful error.
Also, expand on this issue in CONTRIBUTING.md, and add some more links
to the wiki guide for first time contributors.
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Fix all the warnings triggered by the clang-tidy check
performance-inefficient-string-concatenation. This highlights two
things: concatenation of a bunch of strings using operator+, and
appending to a string using 'a = a + b' rather than 'a += b'. In both
cases it only highlights the issue in a loop.
Some of these cases were pretty benign, some looked more serious. Even
the more serious cases were not, as far as I could tell, in
performance-critical code, but some were probably changing O(n) loops
into O(n^2) loops, so they are good to fix.
To help remediate these issues, added two new helped functions: str_cat
and str_append, inspired by Abseil's StrCat and StrAppend.
Previously this check triggered false warnings on expressions in
different elements of an initializer list expression. Prevent that, and
add some test cases.
* Fix bugprone-unused-return-value
Biggest change here was to mapbuffer, which now stores submaps via
unique_ptr rather than raw pointers, simplifying the destructor.
Unfortunately, we have to retain the strange pointer-based API for
mapbuffer, because the submap ownership logic in map is so convoluted.
That can be fixed another day.
Also, renamed mapbuffer::reset() to clear(), for consistency.
In trait_group, removed a couple of calls to reset() that this warning
was highlighting. They didn't do anything anyway.
* Enable clang-tidy bugprone-unused-return-value
* Translator notes on sunburn suffer strings
These strings were wrong; they had punctuation that they shouldn't have.
Remove that punctuation and add translator note to clarify why it
shouldn't have been there in the first place.
* Remove redundant escapes
These '%' should not have been escaped. Un-escape them.
* List all burned bodyparts in message
Previously only the most exposed bodypart would be listed in the message
regarding sunburn / irritation. Instead, list all parts.
* Switch sunburn test to IsBinomialObservation
This test relied on some arbitrary constants, so it was difficult to
know how reasonable failures were. Switch it to a more statistically
well-founded approach.
* Make IsBinomialObservation more lenient by default
This was calibrated to a false positive rate of one in ten thousand.
That's too high for the rate at which we run tests. Default to one in
one hundred thousand instead.
* Improve translatability of sunburn messaging
The "%s your %s" string was surely basically impossible to translate.
Incorporate the first part into the string to make that easier, and
provide the number of bodyparts for languages where that matters.
* Move Mingw CI build to GitHub actions
The Mingw cross-compile on Travis has been consistently exceeding the 50
minute time limit for jobs, and causing all PRs to have failed checks.
This is not helpful.
Try to recreate an equivalent job on GitHub actions in the general build
matrix, and disable the Travis version on PRs (leaving it enabled for
master).
* Fetch key before adding mxe repo
* Convey some variables from requirements to build
GitHub doesn't retain environment by default between steps. We need to
explicitly save the variables we want transferred from requirements.sh
to build.sh.
* Install wine for Mingw build
Looks like wine was installed by default on Travis, but not GitHub, so
we explicitly install it in requirements.sh.
* Pre-run wine in requirements.sh
I think there might be race conditions associated with launching three
wine processes simultaneously. Try to avoid that by running one in
advance.
It looks like the Mac OS tests show that it doesn't support localized
integer parsing. Just disable those tests there; the feature is not
super important.
We need to suppress warnings nested arbitrarily deep in template
specializations; previously we were only suppressing warnings where the
immediate context was a template specialization.
All the existing ways to parse strings to integers are pretty terrible
for one reason or another. They offer poor error handling, are verbose,
and/or don't make it obvious whether they are influenced by the current
locale.
Introduce a new API to attempt to simplify the conversion of strings to
ints, using a ret_val for error handling, and with explicit control over
locale.
Also add unit tests.
These are mostly just member functions which should have been const but
weren't. There were a few places where I chose to refactor the code and
one place got a suppression.
I don't think any of these were actual bugs, but in some cases they
could have become bugs in the right corner cases.
Any method with an overload which is const can be treated as effectively
const for the purposes of this check (ideally we'd also see whether the
resulting use was const, but that's probably more complication than
necessary).
This check is intended to look for cases where code is calling multiple
member functions of the same object, at least one of which is non-const,
without an intervening sequence point. This has been the source of some
bugs, primarily in JSON parsing, where objects might be extracted from
JSON in an unexpected order.
Previously there were separate dedicated components for terrain and
furniture mapgen. But these are also supported in the more general
format_placings so it simplifies the code to get rid of the special
cases for terrain and furniture.
(There's some performance cost here, but I don't think it's
significant).
* Mark many things noexcept
Mark all our move constructors and move assignment operators noexcept.
* Enable performance-noexcept-move-constructors
This clang-tidy check looks for mone constructors which were are not
noexcept, which can cause poor performance when those classes are e.g.
used in a std::vector.
Add an escape for the Jenny Forcette training tree to prevent an
unescapable loop when the avatar is too skilled, and also add a bit of
prologue to Boris's ask for the Ash's Laptop quest.
Pull out a bunch of repeated REQUIRES commands into two new helper
functions.
This dramatically reduces the number of statements in the function,
allowing it to pass the clang-tidy check for function size, and I think
it also improves readability.
* Added json-version of drug dealers map extra
* Made game use json-version instead of hardcoded one
* Updated item group to contain drugs
Also increased damage level of corpses to pulped state so they don't revive
* Removed hardcoded generation
* s/two by four/plank
there are still some translations that refer to "two by" "four" across
two lines, leaving those alone for now because I'm lazy
* fix id in doc/VEHICLES_JSON.md, revert translation changes
* Add a filter to search books by skills they teach
* Hide books not skimmed when filtering items
The player was able to know which skill a book tech without first skim it.
* Fix typographic error
* Check non-skill by ID
name() is i18n-dependent and it may return something other than "nothing" in different languages.
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
* mapgen: clean up jmapgen_monster formatting
Add some whitespace and relocate some single line comments so
the jmapgen_monster class looks nice on a 100 character wide
screen.
* monsters: pass a patrol route to a monster
Add the ability to define a patrol route when placing a monster.
The patrol route is defined as a series of relative mapsquare points
to the original overmap terrain tile's (0,0) mapsquare and is part
of the "spawn_data" structure. Patrol routes and progress along the
route are saved as part of the monster's data structure.
Monsters on a patrol route move on the patrol if they have nothing
better to do: patrol movement takes precedence over wandering and
stabling, but any valid target overrides the patrol. Monsters on
a patrol will move to the next patrol point in the list. As a
work-around for impassible destination points, patrol points are
considered reached when the monster gets within 2 tiles of them.
* monsters: document spawn_data and add patrol in mapgen.doc
Document the existing spawn_data field and its ammo subfield, and
add the new patrol subfield. patrol is a list of points that the
monster will move between, when it would otherwise move idly.
* Adds Jar of Force spell for magus
Adds Jar of Force, a magus spell that summons a jar of force that acts as a 3l jar. It can store liquids and be used to boil things in.
* Update data/mods/Magiclysm/Spells/magus.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Overhaul dragon items
* Fixes
* Small balance fixes after testing, make crafting costs more linear
* Update data/mods/Magiclysm/items/black_dragon_items.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Update data/mods/Magiclysm/items/black_dragon_items.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* Make xl visor the same thickness as normal one to avoid error, specify in description that dragon hide/scale is very durable, fix gloves description mentioning Kevlar, add XL backpack
* lint
* fix xl backpack
* Update data/mods/Magiclysm/items/black_dragon_items.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
* added golem core, summon golem spell and ways to find golem core
golemancer can summon a clay golem with a golem core as a focus; golem cores aren't crafteable YET
* linted attunements
forgot to do that >.>
* added a recipe for golem core and a basic golemancy proficiency
* Add gun variant support
This allows genericizing our massive variety of very similar guns into
one statblock, without removing the flavor.
If a gun or magazine is specified to spawn without a variant, it will
pick from the variants available to it, based on their assigned weight.
Gun variants can specify an alternate name, description and ascii art
for a gun, and variants can be toggled through an option.
Add support for migrations to express variants.
Add explicit extraction for magazines to handle variants.
ASCII art for a variant will fall back to that of the base gun
automatically if not specified or invalid.
Maybe the naming could better express these are for both guns and
magazines, but I think it is fine as is.
item::gun_variant makes the assumption you check it has a variant first,
so make sure to do that.
Move the ammo at the end of gun names option to be next to the gun
variant option.
item::is_magazine doesn't tell us if type->magazine is safe to use, so
!!type->magazine must be used instead of that before accessing
type->magazine.
* Add hacks to Archive::io to load/save gun variants
I couldn't figure out how to specify the lambdas correctly, so I give
up, this works.
Problem is as follows:
In item, I have
```
const gun_variant_data *_gun_variant;
...
struct gun_variant_data
{
std::string id;
// other info that doesn't matter
}
```
I want to save this as `_gun_variant->id;`, and on load, load the string
that was saved and call `item::set_gun_variant(loaded_string);`.
This, and many variations of it don't work.
```
// In item:: scope
const auto load = [this](const std::string &variant) {
set_gun_variant( variant );
};
const auto save = [](const gun_variant_data *gv) {
return gv->id;
};
```
Someone who know what's they're doing here may want to fix my laziness.
* Add spawning support for gun variants
Allow specifying variatns in item groups, mapgen
(Item_group::add_item_entry), and in vehicles.
* Add documentation for gun variants
* Genericize NATO assault rifles
Information lost:
acr - 250ml barrel volume, folding stock
m38dmr - 125 dispersion
Move everything using an old rifle into the new generic rifles.
The m38dmr is debatable, but I figure it's fine to be generic.
Only m4a1s will spawn from unspecified variants at the moment, someone
else can figure out what the proper chances should be.
* Genericize other 5.56 assault rifles
These ones are unique enough to not be simple variants of the NATO
assault rifle, but they also don't need a full enumeration of stats.
Move the brand-specific information to be a variant, genericize name and
descriptions, and make all non-unique stats identical to those of the
NATO assault rifle.
I'm not sure of a good name for the sig generic version, but I want it
to be distinct from the AUTO only or BURST only NATO rifles.
* Genericize .45 ACP firearms
There may be some consideration needed on collapsing the stat blocks for
the pistols/smgs into a single one with copy-from, but this is simply
the highest level genericization changes.
* mapgen: allow activated items to be placed on the map
Add the new item flag "ACTIVATE_ON_PLACE". Items placed during
mapgen with this flag will be activated immediately after they
are placed on the map.
* Dark Skies Above: use active bombs to create large bomb craters
Use the new ACTIVATE_ON_PLACE flag with active bombs with 1 second
count-downs in a new map special that randomly wrecks buildings
across multiple z-levels. The bombs have max_noise = 0 and explode
silently to preserve the avatar's hearing.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
* add stomach and gut kCal to the debug menu
* Add detailed stomach and gut data to the needs menu
* add debug command to edit the faction camp larder
* Add debug command to empty a character's stomach & guts
* Add stored & total kCal view to the info box
* Move CBM installation checks to Character
Reduce code duplication, encapsulate things better, and make this
available outside of the inventory menus.
* Allow mutations to prevent installing CBMs
Bionics can currently cancel mutations when installed, but can't have
mutations prevent installation.
Reduce duplicated code.
I presume there's a reason that set_mutations didn't just call
set_mutation, and the only difference is that it doesn't do the cache
updates till the end, so preserve that behaviour.
* JSONize trap sonar detectibility
Add trap flags - just the same as normal flags, but for traps! Stick
them in their own separate file to avoid confusion.
* JSONize trap memorial messages
light_snare and heavy_snare seem to no longer exist, or I couldn't find
any reference to them but this and tilesets.
Updated dissector trap message, and added a trap message to some traps
(the hallway ones, one or two of the similar-but-not-the-same variants
of existing traps).
* JSONize trap temperature convection
Not quite sure how to describe it, went the lazy route.
* Move traps externs from int to string ids
When loading the game without this content, these will now only give an
error on the use of these, instead of at the end data loading for traps.
Previously there were performance concerns with this, but this should be
fine since #44261 - see #44500.
tr_null must remain an int id, as it used in the string to int id
conversion. This is fine, as it will always be loaded (it's in
data/core).
Move the ledge trap over to data/core as well, because everything will
need the 'open space' trap.
(Getting 0.F-dev working with Travis appears to require additional settings by someone with permissions.) This change enables both pushes and pull requests of 0.F-dev to get checked by the General Matrix. As it is, if one bases a PR off of 0.F-dev, it doesn't get checked by Github.
* Moved mine_entrance OMT from the list of hardcoded locations to industial locations
Also removed mine_shaft OMT and replaced it with mine_shaft_middle and mine_shaft_lower OMTs.
Also added mine_entrance_roof OMT.
* Added mine_entrance and mine_shaft to the list of obsoleted terrains
* Added a zombie miner and its death drops
* Created a json-version of mine entrance and its roof
* Created a json-version of mine shaft (middle and lower variants)
* Changed overmap special definition of a mine to include new json chunks
* Applied migration of hardcoded mine_entrance and mine_shaft OMTs to new json variants
* Made hardcoded mine chunks generate to the west of lower section of new mine shaft OMT
Also removed mine_entrance and mine_shaft from the list of hardocoded mapgen.
* Completely removed build_mine_room function as all mine rooms are now defined in json
Also removed hardcoded generation of mine entrance and mine shaft.
* Removed mentions of mine rooms from mapgen.h
* Updated alt_map_key mod
* Updated graphical overmap mod
* Added missing harvest
* Appease clang and constify
* Quickfix
* Appease clang one more time
Add an effect impacting absorbtion and adding vitamin gain for use in
testing. Also, add the necessary vitamins to be impacted.
Add a food with high quantities of a vitamin to test the absorbtion.
Add an effect with varying levels of fatality, to test fatality of
effects.
Test character's vitamins were not previously being cleared, so make
sure to do that.
It feels a little unsafe to hang onto pointers of monsters that you may
be killing and keep doing things with them, but it appears to work so
I'll live with it.
Not super idiomatic with effects, but it works fine, and I'm not a huge
fan of the current effect structure.
I could have made the chances cata::optional, instead of defaulting to
always fail, but I figured this also worked, and avoided some extra
noise.
Thanks to jbytheway for the assistance with the events stuff - right
now, for simplicity, we're limited to event_spec_character type events.
In the future, this should change (e.g. for drug overdose events).
We could be doing a lot more verification for effects, but that seems
out of scope for this change.
Not particularly idiomatic with current effect stuff, but I'm not a huge
fan of the existing structure.
Change some auto into proper types, because I needed to read things.
constify Creature::resists_effect, because I need it for my changes, and
it can be.
The special case for plutonium cells confused me a bit, I think anything that would get caught by it gets caught by the count by charges section above.
change hitting vehicle parts to use primary damage type rather than STAB or HEAT
moved data from terrain to map_common, can now apply to furniture as well
fixed alarms to only trigger if furniture or terrain is actually hit
remove exclamation mark from message to get around string freeze
prevent damaging items if the shot hits furniture or terrain
allow incendiary shots to start fires on FLAMMABLE_ASH furniture/terrain
remove commented code for items that are now supported
removed special handling of gasoline pumps
removed superfluous in_bounds check
cleaned up and updated some comments/todos
added data for overhead light
- chance_to_hit is zero, so can only be hit intentionally
added data for glassteel walls from magiclysm
- replaces NO_SHOOT flag which no longer does anything
added data for cloning vats
- not special, just something that was hardcoded before (strangely)
added data for paper walls
<!-- A clear and concise description of what the bug is. -->
# Steps To Reproduce
<!-- Steps to reproduce the behavior:
1. Make a player with a gun, magazine, and some ammo.
2. Try to aim at a wall.
3. There's no way to increase aim level. -->
# Expected behavior
<!-- A clear and concise description of what you expected to happen.
Ideally also describe *why* you expect it to happen. -->
# Screenshots
<!-- **If applicable**, add screenshots to help explain your problem.
Do not take a screenshot of the crashing window. Please provide the crash logs in the "Additional context" -->
# Versions and configuration
<!-- Please complete the following information; you can now go to:
- "Main menu (ESC) > Debug Menu > Info > Generate game report" to generate this report.
- Please update your OS version with a more precise version.
- OS: [e.g. iOS 8 or Windows 10 or Ubuntu 18.04]
- Game Version: [from the main menu, e.g. 0.C-29938-g90f5268437]
- Graphics version: [Tiles or Terminal]
- Ingame language: [Arabic or Bulgarian or Chinese (Simplified) or Chinese (Traditional) or Dutch or Esperanto or French or German or Italian (Italy) or Japanese or Korean or Polish or Portuguese (Brazil) or Russian or Serbian or Spanish (Argentina) or Spanish (Spain) or Turkish]
Please take the time to fill out all the fields below.
- type:textarea
id:description-of-bug
attributes:
label:Describe the bug
description:A clear and concise description of what the bug is.
placeholder:There is no way for aim level to increase.
validations:
required:true
- type:textarea
id:steps-to-reproduce
attributes:
label:Steps To Reproduce
description:Steps to reproduce the behavior.
placeholder:|
1. Make a player with a gun, magazine, and some ammo.
2. Try to aim at a wall.
3. There's no way to increase aim level.
validations:
required:true
- type:textarea
id:expected-behavior
attributes:
label:Expected behavior
description:|
A clear and concise description of what you expected to happen.
Ideally also describe *why* you expect it to happen.
placeholder:|
I expected that aim level would increase, because all other skills can increase in level.
validations:
required:true
- type:textarea
id:screenshots
attributes:
label:Screenshots
description:|
**If applicable**, add screenshots to help explain your problem.
Do not take a screenshot of the crashing window. Please provide the crash logs in the "Additional context"
validations:
required:false
- type:textarea
id:versions-and-config
attributes:
label:Versions and configuration
description:|
The following information should consist only of the automated game report generated by the game; please put further information below.
To generate a report: "Main menu (ESC) > Debug Menu > Info > Generate game report".
placeholder:|
- OS: [e.g. iOS 8 or Windows 10 or Ubuntu 18.04]
- Game Version: [e.g. 0.C-29938-g90f5268437]
- Graphics version: [Tiles or Terminal]
- Ingame language: [Arabic or Bulgarian or Chinese (Simplified) or Chinese (Traditional) or Dutch or Esperanto or French or German or Italian (Italy) or Japanese or Korean or Polish or Portuguese (Brazil) or Russian or Serbian or Spanish (Argentina) or Spanish (Spain) or Turkish]
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to your pull request.
Leave the headings unless they don't apply to your PR, and remove the comment blocks (surrounded with <!–– and ––>) when you are done.
Leave the headings unless they don't apply to your PR.
Please read carefully and don't delete the comments delimited by "< !--" and "-- >"
Once a pull request is submitted automatic stylistic and consistency checks will be performed on the PR's changes.
The results of these can be either seen under the "Files changed" section of a PR or in the check's details.
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them. -->
@@ -4,13 +4,15 @@ GNU Unifont (data/font/unifont.ttf) is licensed under GNU General Public License
Terminus Font (data/font/terminus.ttf) is licensed under the SIL Open Font License (see LICENSE-OFL-Terminus-Font.txt).
Vecterminus Font (data/font/VecTerminus12Medium.otf) is licensed under the SIL Open Font License (see LICENSE-OFL-Terminus-Font.txt).
CATCH unit-test framework (tests/catch/catch.hpp) is licensed under the Boost Software License. Visit https://github.com/philsquared/Catch/blob/master/LICENSE.txt to read the license.
PLF List and PLF Colony (src/list.h, src/colony.h) are licensed under the zLib license (https://www.zlib.net/zlib_license.html).
getpost (tools/json_tools/format/getpost.h) is licensed under the MIT license, see file for text of license.
libintl-lite is licensed under Boost Software License 1.0. Visit https://www.boost.org/users/license.html to read the license.
gulrak filesystem (src/third-party/ghc/*) is licensed under the MIT license, see file for text of license.
libbacktrace is licensed under a BSD license (https://github.com/ianlancetaylor/libbacktrace/blob/master/LICENSE). The full license text is as follows:
// Bugfix from j-jorge's branch of libintl-lite: https://github.com/j-jorge/libintl-lite/commit/40e5a41e9b19e3252d348e0548f85e66fa44a79e
// However, libintl-lite does not seem to support plural form strings + translations properly, so I've had to modify the fix further.
// Plural strings are stored as "<singular>NUL<plural>NUL<plural>..." for as many plurals are in the language, eg. Russian has 4, French has 2, Japanese has 1.
// So we only compare the first singular string as per gettext MO files spec here: https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
// We do this via c_str() which clamps at the first NUL character.
// Later on once we have a match, we will dig out the proper plural translation from this megastring.
// First let's get the translated megastring that contains all the plural translations separated by NUL chars
constchar*translatedStr=gettext(origStr);
// Now determine correct plural form to use. This data is described in .PO files "Plural-Forms" metadata.
constchar*language=getenv("LANGUAGE");
// Bail out if we don't have data, or the result of gettext is the exact same pointer to the source string (so we don't have a translated megastring to look at)
// Two extra signatures required as per: http://blog.stuff-o-matic.com/post/2013/09/07/Porting-a-C-game-to-Android,-the-case-of-Andy-s-Super-Great-Park
"Each character has a collection of skills they may learn over time. These are grouped into four categories: Melee, Ranged, Crafting, and Interaction. Each skill begins at level 0 and increases with study and practice up to a maximum of level 10. Each level is harder to attain than the one before, but each level also increases the character's ability to do things using that skill, and may unlock crafting recipes or other actions gated by skill level. Reaching level 10 in any skill represents true mastery, near the limit of human capability.",
"The lower left column of the <press_player_data> screen displays all skills and their current levels, along with percentage progress toward the next level. Skills highlighted in light red represent those where the character's knowledge has exceeded their practical experience. This may occur when learning skills primarily from books, without practicing activities or crafts that also exercise those skills.",
"Combat skills in the Melee and Ranged categories are quite specialized, focused on specific damage types and firearm flavors. The Crafting and Interaction categories are more general, each covering a potentially wide range of techniques and abilities.",
"PROFICIENCIES",
"Separate from Skills, Proficiencies represent a more granular level of character talents. They are generally mastered over a shorter time span, and their names and purviews tend to be more concrete and specific than those of skills.",
"Proficiencies are often defined as a tree of knowledge, where beginners must first master the basic principles before moving onto more advanced topics. For instance, before a character learns \"Blacksmithing\", they must first acquire \"Principles of Metalworking\". Once they have learned \"Blacksmithing\", they may dive deeper into \"Armorsmithing\", \"Bladesmithing\", or \"Manual Tooling\".",
"The lower right column of the <press_player_data> screen shows each Proficiency, starting in white with those fully learned, followed in grey by those partially learned, and their current progress. Partially learned proficiencies give some benefit, gradually reducing penalties until they are fully learned. Once fully learned, proficiencies are considered mastered, and are not forgotten.",
"Many crafting recipes involve one or more proficiencies. Trying to craft these recipes without the necessary skill set is a long and arduous process with a high rate of failure. Learning the missing proficiencies offers a bonus to time and to chance of success. The effect of missing proficiencies are multiplied when several proficiencies are involved, making some advanced recipes extremely time-consuming and error-prone without appropriate knowledge. For this reason, it's recommended to learn at least some of the proficiencies with easier recipes before moving onto more advanced multiple-proficiency recipes. Books may also grant a portion of the proficiency bonus."
]
},
{
"type":"help",
"order":18,
"name":"<1>: List of item types and data",
"messages":[
"~ Liquid\n%% Food\n! Medication\nThese are all consumed by using <press_eat>. They may provide a certain amount of nutrition, may quench your thirst, may be a stimulant or a depressant, and may provide (or reduce!) morale. There may also be more subtle effects.",
@@ -258,7 +274,7 @@
},
{
"type":"help",
"order":18,
"order":19,
"name":"<2>: Description of map symbols",
"messages":[
"MAP SYMBOLS:",
@@ -286,7 +302,7 @@
},
{
"type":"help",
"order":19,
"order":20,
"name":"<3>: Description of gun types",
"messages":[
"<color_light_gray>( Handguns</color>\nHandguns are small weapons held in one or both hands. They are much more difficult to aim and control than larger firearms, and this is reflected in their poor accuracy. However, their small size makes them appropriate for short-range combat. They are also relatively quick to reload and use a very wide variety of ammunition. Their small size and low weight make it possible to carry several loaded handguns, switching from one to the next as their ammo is spent.",
@@ -302,7 +318,7 @@
},
{
"type":"help",
"order":20,
"order":21,
"name":"<4>: FAQ (contains spoilers!)",
"messages":[
"Q: What is Safe Mode, and why does it prevent me from moving?\nA: Safe Mode is a way to guarantee that you won't die by holding a movement key down. When a monster comes into view, your movement will be ignored until Safe Mode is turned off with the <press_safemode> key. This ensures that the sudden appearance of a monster won't catch you off guard.",
"description":"A stimulator system has been surgically implanted alongside your adrenal glands, allowing you to trigger your body's adrenaline response at the cost of some bionic power.",
"description":"The flesh on your arms has been surgically replaced by alloy plating. Provides passive protection and can be used in conjunction with bionic martial arts.",
"occupied_bodyparts":[["arm_l",4],["arm_r",4]],
"bash_protec":[["arm_l",3],["arm_r",3]],
"cut_protec":[["arm_l",3],["arm_r",3]],
"bullet_protec":[["arm_l",3],["arm_r",3]],
"name":{"str":"Intradermal Alloy - Arms"},
"description":"An advanced protective meshwork has been woven into the flesh on your arms and hands, protecting them from physical trauma.",
"cant_remove_reason":"The Intradermal Plating is too thoroughly entwined with %1$s to be removed safely.",
"social_modifiers":{"intimidate":10}
},
{
"id":"bio_armor_head",
"type":"bionic",
"name":{"str":"Alloy Plating - head"},
"description":"The flesh on your head has been surgically replaced by alloy plating, protecting both your head and jaw regions.",
"occupied_bodyparts":[["head",5],["mouth",1]],
"bash_protec":[["head",3]],
"cut_protec":[["head",3]],
"bullet_protec":[["head",3]],
"name":{"str":"Intradermal Alloy - head"},
"description":"An advanced protective meshwork has been woven into the flesh on your head and jaw region, protecting your skull from physical trauma.",
"occupied_bodyparts":[["head",3],["mouth",1]],
"bash_protec":[["head",3],["mouth",3]],
"cut_protec":[["head",3],["mouth",3]],
"bullet_protec":[["head",3],["mouth",3]],
"encumbrance":[["head",1]],
"cant_remove_reason":"The Intradermal Alloy is too thoroughly entwined with %1$s to be removed safely.",
"description":"The flesh on your legs has been surgically replaced by alloy plating. Provides passive protection and can be used in conjunction with bionic martial arts.",
"occupied_bodyparts":[["leg_l",6],["leg_r",6]],
"bash_protec":[["leg_l",3],["leg_r",3]],
"cut_protec":[["leg_l",3],["leg_r",3]],
"bullet_protec":[["leg_l",3],["leg_r",3]],
"name":{"str":"Intradermal Alloy - Legs"},
"description":"An advanced protective meshwork has been woven into the flesh on your legs and feet, protecting them from physical trauma.",
"description":"You have a battery draining attachment, and thus can make use of the energy contained in normal, everyday batteries. Use 'E' to drain charge from a battery. Can be toggled on and off at will.",
"occupied_bodyparts":[["torso",25]],
"description":"You have a battery draining attachment, and thus can make use of the energy contained in normal, everyday batteries. Use bionic menu to drain charge from a battery. Can be toggled on and off at will.",
"occupied_bodyparts":[["torso",20]],
"fuel_options":["battery"],
"fuel_efficiency":1,
"fuel_capacity":2000,
@@ -395,20 +483,21 @@
"type":"bionic",
"name":{"str":"Monomolecular Blade"},
"description":"A deadly foot-long blade made of advanced material now resides inside your forearm, capable of being extended through the back of your wrist at the cost of a small amount of power. Though exceptionally sharp, it will prevent you from holding anything else while extended.",
"description":"Small sensors have been surgically implanted in your heart, allowing you to analyze your blood. This will detect many illnesses, drugs, and other conditions.",
"occupied_bodyparts":[["torso",5]],
"occupied_bodyparts":[["torso",4]],
"act_cost":"100 J"
},
{
"id":"bio_blood_filter",
"type":"bionic",
"name":{"str":"Blood Filter"},
"description":"A filtration system in your heart allows you to actively filter out chemical impurities, primarily drugs. It will have limited impact on viruses. Note that it is not a targeted filter; ALL drugs in your system will be affected.",
"occupied_bodyparts":[["torso",10]],
"description":"A filtration system near your heart allows you to actively filter out chemical impurities, primarily drugs. It will have limited impact on viruses. Note that it is not a targeted filter; ALL drugs in your system will be affected.",
"occupied_bodyparts":[["torso",5]],
"act_cost":"600 J"
},
{
@@ -441,7 +530,7 @@
"type":"bionic",
"name":{"str":"Cable Charger System"},
"description":"You have a complex port surgically mounted above your hip. While active, it will recharge bionic power when connected to a power source via jumper cable.",
"occupied_bodyparts":[["torso",10]],
"occupied_bodyparts":[["torso",7]],
"is_remote_fueled":true,
"time":1,
"fuel_efficiency":1,
@@ -453,52 +542,52 @@
"name":{"str":"Subdermal Carbon Filament"},
"description":"Lying just beneath your skin is a thin armor made of carbon nanotubes. This reduces bashing damage by 2 and cutting damage by 4.",
"occupied_bodyparts":[
["torso",5],
["torso",6],
["head",2],
["arm_l",2],
["arm_r",2],
["hand_l",1],
["hand_r",1],
["leg_l",3],
["leg_r",3],
["foot_l",1],
["foot_r",1]
["foot_r",1],
["hand_l",1],
["hand_r",1]
],
"bash_protec":[
["torso",2],
["head",2],
["arm_l",2],
["arm_r",2],
["hand_l",2],
["hand_r",2],
["leg_l",2],
["leg_r",2],
["foot_l",2],
["foot_r",2]
["foot_r",2],
["hand_l",2],
["hand_r",2]
],
"cut_protec":[
["torso",4],
["head",4],
["arm_l",4],
["arm_r",4],
["hand_l",4],
["hand_r",4],
["leg_l",4],
["leg_r",4],
["foot_l",4],
["foot_r",4]
["foot_r",4],
["hand_l",4],
["hand_r",4]
],
"bullet_protec":[
["torso",4],
["head",4],
["arm_l",4],
["arm_r",4],
["hand_l",4],
["hand_r",4],
["leg_l",4],
["leg_r",4],
["foot_l",4],
["foot_r",4]
["foot_r",4],
["hand_l",4],
["hand_r",4]
],
"flags":["BIONIC_NPC_USABLE","BIONIC_SHOCKPROOF"]
},
@@ -507,9 +596,9 @@
"type":"bionic",
"name":{"str":"Chain Lightning"},
"description":"Your body is equipped with a chain lightning generator, allowing you to emit a blast of lightning at a target, leaving a trail of lightning in its wake, jumping to additional targets within 4 tiles of the previous target.",
"description":"Vicious claws have been surgically installed inside your fingers, allowing you to extend and retract them at the cost of a small amount of power. These do considerable cutting damage, but prevent you from holding anything else while extended.",
"description":"This high-power system uses a set of cameras and LEDs to make you blend into your background, rendering you fully invisible to normal vision. However, you may be detected by infrared, sonar, etc.",
"occupied_bodyparts":[
["torso",15],
["torso",8],
["head",2],
["arm_l",3],
["arm_r",3],
@@ -573,7 +663,7 @@
"type":"bionic",
"name":{"str":"Close Quarters Battle"},
"description":"Bionic processors and databanks, loaded with martial arts combat programs, are surgically integrated into your nervous system. Whilst active, the CQB module will improve your hand-to-hand combat skills, but prevents you from improving them through combat experience.",
"occupied_bodyparts":[["head",4]],
"occupied_bodyparts":[["head",3]],
"act_cost":"20 J",
"react_cost":"20 J",
"time":1,
@@ -593,7 +683,7 @@
"type":"bionic",
"name":{"str":"Wired Reflexes"},
"description":"Your reaction time has been greatly enhanced with bionic nerve stimulators, giving you a +2 bonus to dexterity.",
"description":"A malfunctioning bionic which occasionally discharges electricity through your body, causing pain and brief paralysis but no damage.",
"occupied_bodyparts":[["torso",6]],
"flags":["BIONIC_FAULTY"]
"flags":["BIONIC_FAULTY"],
"trigger_cost":"10 kJ"
},
{
"id":"bio_drain",
@@ -637,34 +728,36 @@
"description":"When this bionic is active, you can block hearing completely.",
"included":true,
"flags":["BIONIC_TOGGLED"],
"active_flags":["DEAF"]
"active_flags":["DEAF"],
"auto_deactivates":["bio_ears"]
},
{
"id":"bio_ears",
"type":"bionic",
"name":{"str":"Enhanced Hearing"},
"description":"When this bionic is active, your hearing will be drastically improved, allowing you to hear ten times better than the average person. Additionally, high-intensity sounds will be automatically dampened before they can damage your hearing.",
"description":"Surgically mounted in the palm of your hand are small parabolic EMP field generators. You may use power to fire a wide, but short-ranged blast which will disable electronics and robots.",
"occupied_bodyparts":[["arm_r",1],["hand_r",2]],
"description":"Surgically mounted in your left arm and the palm of your left hand are small parabolic EMP field generators. You may use power to fire a wide but short-ranged blast that will disable electronics and robots.",
"occupied_bodyparts":[["arm_l",6],["hand_l",1]],
"act_cost":"50 kJ"
},
{
"type":"bionic",
"id":"bio_emp_armgun",
"name":{"str":"EMP Projector"},
"description":"A ranged EMP generator system is implanted on the palm of your right hand and arm. The system fires precise, single-target pulses that require time to aim. Extremely effective against electronic targets but mostly useless otherwise.",
"occupied_bodyparts":[["arm_r",10],["hand_r",5]],
"description":"A ranged EMP generator system is implanted in your right arm and the palm of your right hand. The system fires precise, single-target pulses that require time to aim. Extremely effective against electronic targets but mostly useless otherwise.",
"occupied_bodyparts":[["arm_r",8],["hand_r",2]],
"act_cost":"50 kJ",
"fake_item":"bio_emp_gun",
"fake_weapon":"bio_emp_gun",
"flags":["BIONIC_GUN"]
},
{
@@ -672,9 +765,9 @@
"type":"bionic",
"name":{"str":"Ethanol Burner"},
"description":"You burn alcohol as fuel in an extremely efficient reaction.",
"occupied_bodyparts":[["torso",26]],
"occupied_bodyparts":[["torso",20]],
"fuel_options":["alcohol"],
"fuel_capacity":500,
"fuel_capacity":400,
"fuel_efficiency":0.5,
"exothermic_power_gen":true,
"time":1,
@@ -706,6 +799,7 @@
"description":"Much of the material in your inner eye has been surgically removed and replaced with an array of high-powered, auto-focusing lenses. They function as integrated binoculars, letting you see much farther than before, and any vision problems you might have had are now gone.",
"occupied_bodyparts":[["eyes",2]],
"flags":["ENHANCED_VISION"],
"cant_remove_reason":"The Telescopic Lenses are part of %1$s eyes now. Removing them would leave %2$s blind.",
"canceled_mutations":[
"HYPEROPIC",
"MYOPIC",
@@ -765,16 +859,16 @@
"type":"bionic",
"name":{"str":"Fingerhack"},
"description":"One of your fingers has an electrohack surgically embedded in it; an all-purpose hacking unit used to override control panels and the like (but not computers). Skill in computers is important, and a failed use may damage your circuits.",
"occupied_bodyparts":[["hand_r",2]],
"fake_item":"electrohack",
"flags":["BIONIC_TOGGLED"]
"occupied_bodyparts":[["hand_l",1]],
"toggled_pseudo_items":["electrohack"],
"flags":["BIONIC_TOGGLED","USES_BIONIC_POWER"]
},
{
"id":"bio_flashbang",
"type":"bionic",
"name":{"str":"Flashbang Generator"},
"description":"Light emitting diodes surgically integrated into your skin can release a flash comparable to a flashbang grenade, blinding nearby enemies. Speakers integrated into your body mimic the loud sound, deafening those nearby.",
"description":"You don't think that capacitor is *meant* to glow, but it does, and usually at bad times. A malfunctioning bionic randomly turns on and off, causing you to glow and making you visible in the dark without improving how much you can see in the slightest.",
"flags":["BIONIC_FAULTY"]
"flags":["BIONIC_FAULTY"],
"trigger_cost":"1 kJ"
},
{
"id":"bio_geiger",
@@ -819,7 +916,8 @@
"name":{"str":"Respirator"},
"description":"A complex respiration augmentation system. Improves respiration ability in air and allows breathing water. Will automatically turn on when drowning. Turn on to recharge stamina faster, at moderate power cost. Asthmatics may also use it to stop asthma attacks.",
"description":"While fighting unarmed against a warm-blooded opponent, there is a chance that a successful hit will drain body heat, inflicting a small amount of extra damage, and increasing your power reserves slightly.",
"occupied_bodyparts":[
["torso",12],
["torso",6],
["head",3],
["arm_l",3],
["arm_r",3],
@@ -849,7 +947,8 @@
["foot_l",2],
["foot_r",2]
],
"flags":["BIONIC_TOGGLED","BIONIC_NPC_USABLE"]
"flags":["BIONIC_TOGGLED","BIONIC_NPC_USABLE"],
"trigger_cost":"3 kJ"
},
{
"id":"bio_heatsink",
@@ -879,7 +978,7 @@
"type":"bionic",
"name":{"str":"Hydraulic Muscles"},
"description":"While activated, your muscles will be greatly enhanced, increasing your strength by 20.",
"description":"Your brain has been enhanced with bionic coprocessors, giving you a +2 bonus to intelligence.",
"occupied_bodyparts":[["head",7]],
"occupied_bodyparts":[["head",6]],
"stat_bonus":[["INT",2]],
"flags":["BIONIC_NPC_USABLE"]
},
@@ -911,7 +1010,7 @@
"type":"bionic",
"name":{"str":"Itchy Metal Thing"},
"description":"A bionic of some sort, so badly installed that you cannot even tell what it was originally supposed to be. Sometimes it itches horribly.",
"description":"One of your fingers has a small high-powered laser surgically embedded in it. This long range weapon is not incredibly damaging, but is very accurate, and has the potential to start fires.",
"description":"The index fingers of both hands have powerful fire starters which extend from the tip.",
"occupied_bodyparts":[["hand_l",1],["hand_r",1]],
"fake_item":"fake_firestarter",
"act_cost":"5 kJ"
"description":"The index finger of your left hand has a fire starter that can extend from the tip.",
"occupied_bodyparts":[["hand_l",1]],
"flags":["USES_BIONIC_POWER"],
"passive_pseudo_items":["crude_firestarter"],
"act_cost":"1500 J"
},
{
"id":"bio_lockpick",
"type":"bionic",
"name":{"str":"Fingerpick"},
"description":"One of your fingers has an electronic lockpick surgically embedded in it. This automatic system will quickly unlock all but the most advanced key locks without any skill required on the part of the user.",
"occupied_bodyparts":[["hand_r",2]],
"occupied_bodyparts":[["hand_l",2]],
"act_cost":"50 J"
},
{
"id":"bio_magnet",
"type":"bionic",
"name":{"str":"Electromagnetic Unit"},
"description":"Surgically embedded in your right hand is a powerful electromagnet, allowing you to use your own strength to pull all nearby magnetic objects towards you. Unlucky bystanders might be injured or killed by flying objects.",
"occupied_bodyparts":[["hand_r",3]],
"act_cost":"10 kJ"
"description":"Surgically embedded in your left arm is a powerful electromagnet, allowing you to use your own strength to pull all nearby magnetic objects towards you. Unlucky bystanders might be injured or killed by flying objects.",
"occupied_bodyparts":[["arm_l",9]],
"act_cost":"15 kJ"
},
{
"id":"bio_membrane",
@@ -983,16 +1093,29 @@
"description":"Your memory has been enhanced with small quantum storage drives. While active, you learn - both through reading and practice - more quickly. Additionally, you can't forget skills you've already learned, and the layout of terrain you've explored will remain in your memory for an incredibly long time.",
"description":"Your digestive system and power supply are interconnected; bionic energy is replenished by burning calories. Can be toggled on and off at will.",
"occupied_bodyparts":[["torso",25]],
"occupied_bodyparts":[["torso",20]],
"fuel_options":["metabolism"],
"fuel_efficiency":0.25,
"time":1,
@@ -1004,14 +1127,15 @@
"name":{"str":"Weather Reader"},
"description":"A multitude of scientific instruments and sensors collect environmental data. The data is compiled and presented as a simple readout of the current weather. It also passively tells you the local air temperature.",
"occupied_bodyparts":[["torso",1],["head",1]],
"act_cost":"10 J"
"act_cost":"10 J",
"flags":["THERMOMETER"]
},
{
"id":"bio_nanobots",
"type":"bionic",
"name":{"str":"Repair Nanobots"},
"description":"Inside your body is a fleet of tiny dormant robots. While activated they will flit about your body, repairing damage at 1 HP per minute and stopping bleeding at the cost of extra power and stored calories. No power is consumed if there is nothing to heal.",
"occupied_bodyparts":[["torso",10]],
"occupied_bodyparts":[["torso",12]],
"flags":["BIONIC_TOGGLED","BIONIC_NPC_USABLE"],
"act_cost":"80 J",
"react_cost":"40 J",
@@ -1073,6 +1197,7 @@
"flags":["BIONIC_TOGGLED","BIONIC_NPC_USABLE"],
"act_cost":"10 kJ",
"react_cost":"10 kJ",
"trigger_cost":"1 kJ",
"time":1
},
{
@@ -1081,7 +1206,8 @@
"name":{"str":"Sensory Dulling"},
"description":"Your nervous system is wired to allow you to inhibit the signals of pain, allowing you to dull your senses at will. However, the use of this system may cause delayed reaction time and drowsiness.",
"occupied_bodyparts":[["head",2]],
"flags":["BIONIC_TOGGLED","BIONIC_NPC_USABLE"]
"flags":["BIONIC_TOGGLED","BIONIC_NPC_USABLE"],
"trigger_cost":"2 kJ"
},
{
"id":"bio_pokedeye",
@@ -1117,6 +1243,7 @@
"type":"bionic",
"name":{"str":"Power Storage"},
"capacity":"100 kJ",
"dupes_allowed":true,
"description":"A Compact Bionics Module that increases your power capacity by 100 kJ. Having at least one of these is a prerequisite to using powered bionics. You will also need a power supply, found in various CBMs.",
"flags":["BIONIC_NPC_USABLE"]
},
@@ -1125,6 +1252,7 @@
"type":"bionic",
"name":{"str":"Power Storage Mk. II"},
"capacity":"250 kJ",
"dupes_allowed":true,
"description":"A Compact Bionics Module that increases your power capacity by 250 kJ.",
"flags":["BIONIC_NPC_USABLE"]
},
@@ -1145,15 +1273,16 @@
"flags":["BIONIC_TOGGLED"],
"act_cost":"3 J",
"react_cost":"3 J",
"trigger_cost":"250 kJ",
"time":1
},
{
"id":"bio_purifier",
"type":"bionic",
"name":{"str":"Air Filtration System"},
"description":"Surgically implanted in your trachea is an advanced filtration system. If toxins, or airborne diseases find their way into your windpipe, the filter will attempt to remove them.",
"occupied_bodyparts":[["torso",4],["mouth",2]],
"env_protec":[["mouth",7]],
"description":"Surgically implanted in your trachea is an advanced filtration system. If toxins or airborne diseases find their way into your windpipe, the filter will attempt to remove them.",
"occupied_bodyparts":[["torso",5],["mouth",1]],
"env_protec":[["mouth",9]],
"flags":["BIONIC_NPC_USABLE"]
},
{
@@ -1181,8 +1310,8 @@
"type":"bionic",
"name":{"str":"Fingertip Razors"},
"description":"You possess razor-sharp claws underneath your fingernails that do a small amount of unarmed slashing damage whenever your fingertips are uncovered.",
"occupied_bodyparts":[["hand_l",2],["hand_r",2]],
"fake_item":"fake_razor",
"occupied_bodyparts":[["hand_l",1],["hand_r",1]],
"passive_pseudo_items":["fake_razor"],
"flags":["BIONIC_NPC_USABLE"]
},
{
@@ -1239,7 +1368,8 @@
"name":{"str":"Bionic Short Circuit"},
"description":"A poorly-wired bionic which fails to serve its intended purpose, this malfunctioning device periodically short-circuits, causing systemic muscle tremors.",
"description":"While fighting unarmed, or with a weapon that conducts electricity, there is a chance that a successful hit will shock your opponent, inflicting extra damage and disabling them temporarily at the cost of some energy.",
"description":"A system of surgical grade scalpels is implanted on your fingers. They allow you to make automated precise cuts and can also be used as a high-quality butchering tool.",
"occupied_bodyparts":[["arm_r",1],["arm_l",1]],
"fake_item":"bio_scalpel",
"description":"A system of surgical grade scalpels is implanted in your forearms, extending from just above your wrists. They allow you to make automated precise cuts and can also be used as a high-quality butchering tool.",
"occupied_bodyparts":[["arm_r",2],["arm_l",2]],
"fake_weapon":"bio_scalpel",
"flags":["BIONIC_TOGGLED","BIONIC_WEAPON"]
},
{
@@ -1346,7 +1478,7 @@
"occupied_bodyparts":[["eyes",1]],
"included_bionics":["bio_blindfold"],
"flags":["BIONIC_NPC_USABLE","GLARE_RESIST"],
"fake_item":"fake_goggles"
"passive_pseudo_items":["fake_goggles"]
},
{
"id":"bio_targeting",
@@ -1354,7 +1486,8 @@
"name":{"str":"Targeting System"},
"description":"Your eyes are surgically equipped with range finders, and their movement is synced with that of your arms, to a degree. Shots you fire will be much more accurate, particularly at long range.",
"description":"Surgically implanted in your hands and fingers is a set of tools - screwdriver, hammer, wrench, hacksaw, drill, welder, and heating elements. You can use this in place of many tools when crafting.",
"occupied_bodyparts":[["hand_l",3],["hand_r",3]],
"fake_item":"toolset",
"description":"Surgically implanted in your hands and forearms is a set of tools - screwdriver, hammer, wrench, hacksaw, drill, heating elements, and others. You can use this in place of many tools when crafting.",
"description":"Your leg joints have been equipped with servomotors that provide power-assisted movement. They are optimized for running, but walking also requires less effort when this bionic is online. However, when it's offline it will hamper your movement, as you struggle against its moving parts.",
"description":"Your leg joints have been equipped with servomotors that provide power-assisted movement. Movement takes less effort when this bionic is online. However, when it's offline it will hamper your movement, as you struggle against its moving parts.",
"description":"Nanotubes surgically embedded in the palm of your hand will pump any available fluid out of a dead body, cleanse it of impurities and convert it into drinkable water. You must, however, have a container to store the water in.",
"occupied_bodyparts":[["arm_r",1],["hand_r",2]],
"occupied_bodyparts":[["arm_l",3],["hand_l",1]],
"act_cost":"20 kJ"
},
{
@@ -1504,7 +1643,7 @@
"name":{"str":"Intravenous Needletip"},
"description":"The flesh of the inside of your middle finger has been replaced with a tube leading into your arteries, with a retractable needle extending out of the tip of the finger when clenched. This lets you pump intravenous drugs like morphine directly into your bloodstream without needing to carry a syringe.",
"description":"A standard convection-based oven, commonly used for heating and cooking food. Despite it no longer working, you could safely light a fire inside.",
"description":"A standard convection-based oven, commonly used for heating and cooking food. You could safely light a fire inside or power it with UPS.",
"description":"An invaluable fixture in any home, it would be a miracle to have one that works. The standing tank may hold a moderate amount of water, but while better than anything that would be in the bowl, it would not be the cleanest.",
"description":"A massive packed-together block of hay, it makes for easy storage of straw for livestock. If your only other option is the floor, it makes a tolerable bed.",
"description":"A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition.",
"description":"A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition.",
"description":"A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition. If you had something to listen close with and a hell of a lot of time, you could probably crack it.",
"name":"locked gun safe",
"description":"A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition. If you had something to pick its lock with, you could probably open it.",
"description":"A sheet metal shelving unit, with the storage surfaces angled in such a way as to show off the items stored. Metal fasteners with a lock hold the items securely to the rack.",
"lockpick_message":"With a satisfying click, the lock and the display case opens",
"examine_action":"locked_object_pickable",
"bash":{
"str_min":6,
"str_max":20,
"sound":"glass breaking",
"sound_fail":"whack!",
"sound_vol":16,
"sound_fail_vol":12,
"furn_set":"f_displaycase_b",
"items":[{"item":"glass_shard","count":[25,50]}]
}
},
{
"type":"furniture",
"id":"f_displaycase_o",
"name":"open display case",
"looks_like":"f_rack",
"description":"A secure wooden case at about waist-height, with glass panelling on the top. Useful for storing valuable things while still showing them off. Not actually as secure as it looks, as the display windows are easily broken. This one has had its lock picked and is open.",
"description":"Metalworking station made of rock, typically used in combination with an anvil. Works as a charcoal forge in crafting recipes.",
"symbol":"^",
"symbol":"U",
"color":"light_red",
"move_cost_mod":-1,
"coverage":40,
@@ -423,7 +423,7 @@
"name":"clay kiln",
"looks_like":"f_fireplace",
"description":"A kiln designed to bake clay pottery and bricks.",
"symbol":"^",
"symbol":"U",
"color":"light_red",
"move_cost_mod":-1,
"coverage":40,
@@ -470,7 +470,7 @@
"id":"f_arc_furnace",
"name":"electric arc furnace",
"looks_like":"f_machinery_heavy",
"description":"Not the kind of furnace you'd heat your house with, this is a device for heating things to extreme temperatures as part of industrial fabrication processes.",
"description":"Not the kind of furnace you'd heat your house with, this is a device for heating things to extreme temperatures as part of industrial fabrication processes. Can be used in recipes instead of forge, when supplied with power from UPS.",
"symbol":"0",
"color":"white_red",
"move_cost_mod":-1,
@@ -505,7 +505,7 @@
"id":"f_drill_press",
"name":"drill press",
"looks_like":"f_machinery_light",
"description":"A powerful drill mounted on a slide that lets it drop precisely down. Useful in all kinds of projects from industrial fabrication to home woodworking.",
"description":"A powerful drill mounted on a slide that lets it drop precisely down. Useful in all kinds of projects from industrial fabrication to home woodworking, if supplied with power from UPS.",
"symbol":"7",
"color":"yellow_red",
"move_cost_mod":-1,
@@ -538,12 +538,39 @@
},
"crafting_pseudo_item":"fake_drill_press"
},
{
"type":"furniture",
"id":"f_firefly_terrarium",
"name":"firefly terrarium",
"description":"While many survivors would have focused on trying to bring back electric lights, whomever lives here has apparently decided to make use of the changes wrought by the cataclysm to provide light. This vivarium contains soil, strange plants you don't recognize immediately, and most strikingly, a giant mutant firefly.",
"description":"A rotating saw blade set into a large flat table, for making straight measured cuts. One of the key tools in a carpenter's arsenal.",
"description":"A rotating saw blade set into a large flat table, for making straight measured cuts, if supplied with power from UPS. One of the key tools in a carpenter's arsenal.",
"symbol":"7",
"color":"yellow_red",
"move_cost_mod":8,
@@ -582,7 +609,7 @@
"id":"f_mitresaw",
"name":"mitre saw",
"looks_like":"f_machinery_light",
"description":"A circular saw blade on an arm that can slide and rotate in several directions, this is a staple tool for nearly any carpentry.",
"description":"A circular saw blade on an arm that can slide and rotate in several directions, this is a staple tool for nearly any carpentry, if supplied with power from UPS.",
"symbol":"7",
"color":"yellow_cyan",
"move_cost_mod":-1,
@@ -621,7 +648,7 @@
"id":"f_bandsaw",
"name":"bandsaw",
"looks_like":"f_machinery_light",
"description":"A ribbonlike sawblade runs in a single direction in this tool, allowing precise cuts at almost any angle.",
"description":"A ribbonlike sawblade runs in a single direction in this tool, allowing precise cuts at almost any angle, if supplied with power from UPS.",
"symbol":"7",
"color":"yellow_cyan",
"move_cost_mod":-1,
@@ -659,7 +686,7 @@
"id":"f_router",
"name":"router table",
"looks_like":"f_machinery_light",
"description":"This table has an inset router, a rotating motor with an exchangeable blade head for cutting specific profiles and grooves and stuff.",
"description":"This table has an inset router, a rotating motor with an exchangeable blade head for cutting specific profiles and grooves and stuff, if supplied with power from UPS.",
"symbol":"7",
"color":"yellow_green",
"move_cost_mod":8,
@@ -697,7 +724,7 @@
"id":"f_planer",
"name":"planer",
"looks_like":"f_machinery_light",
"description":"A hefty tool that will take in a board and cut it smooth and flat to a specific width. Particularly great if working with raw lumber stock, but also good just for shaving wood down to size.",
"description":"A hefty tool that will take in a board and cut it smooth and flat to a specific width, if supplied with power from UPS. Particularly great if working with raw lumber stock, but also good just for shaving wood down to size.",
"symbol":"7",
"color":"yellow_white",
"move_cost_mod":-1,
@@ -735,7 +762,7 @@
"id":"f_jointer",
"name":"jointer",
"looks_like":"f_machinery_light",
"description":"A table-shaped tool with a rotating blade that will cut down, smooth out, and square off a board to make it very smooth and nice indeed.",
"description":"A table-shaped tool with a rotating blade that will cut down, smooth out, and square off a board to make it very smooth and nice indeed, if supplied with power from UPS.",
"symbol":"7",
"color":"yellow_magenta",
"move_cost_mod":8,
@@ -773,7 +800,7 @@
"id":"f_hydraulic_press",
"name":"hydraulic press",
"looks_like":"f_machinery_light",
"description":"If you really want to squash something a lot, this would be exactly the right industrial tool for you. If, you know, it had power.",
"description":"If you really want to squash something a lot, this would be exactly the right industrial tool for you, if supplied with power from UPS.",
"symbol":"9",
"color":"black_red",
"move_cost_mod":-1,
@@ -811,7 +838,7 @@
"id":"f_heavy_lathe",
"name":"power lathe",
"looks_like":"f_machinery_light",
"description":"An industrial-grade lathe, for turning chunks of metal and other hard things into round chunks of metal and other hard things.",
"description":"An industrial-grade lathe, for turning chunks of metal and other hard things into round chunks of metal and other hard things, if supplied with power from UPS.",
"symbol":"4",
"color":"cyan_red",
"move_cost_mod":-1,
@@ -846,7 +873,7 @@
"id":"f_air_compressor",
"name":"air compressor",
"looks_like":"f_standing_tank",
"description":"This durable tank is topped with a motor that will cram as much air into the tank as possible.",
"description":"This durable tank is topped with a motor that will cram as much air into the tank as possible, if supplied with power from UPS.",
"symbol":"8",
"color":"black_yellow",
"move_cost_mod":-1,
@@ -885,6 +912,38 @@
},
"crafting_pseudo_item":"fake_air_compressor"
},
{
"type":"furniture",
"id":"f_manual_tire_changer",
"name":"manual tire changer",
"looks_like":"f_machinery_light",
"description":"This floor mounted machine contains all the levers, clamps and mounts required to remove or fit a tire, plus an integrated foot pump to inflate it.",
"description":"A faux concrete wall positioned and joined seamlessly with the wall, this wall is capable of resisting extreme elements as well as hostile forces. Blast load rated and extremely fire-retardant, breaching will require specialized tools or industrial vehicles.",
"description":"A bare and cold concrete floor with matching roof, could still insulate from the outdoors but roof collapse is possible if supporting walls are broken down.",
"description":"A bare and cold concrete floor with a streak of red paint, could still insulate from the outdoors but roof collapse is possible if supporting walls are broken down.",
"description":"A bare and cold concrete floor with a streak of yellow paint and a still-functioning light attached to the ceiling above, could still insulate from the outdoors but roof collapse is possible if supporting walls are broken down.",
"description":"Interlocking wooden tiles that are more than likely treated against fire, with a still-functioning light attached to the ceiling above.",
"symbol":".",
"color":"white",
"connects_to":"WOODFLOOR",
"move_cost":2,
"light_emitted":120,
"roof":"t_flat_roof",
@@ -112,13 +144,14 @@
"description":"High-quality and tough checkered flooring to reduce risk of slips and falls, with a still-functioning light attached to the ceiling above.",
"symbol":".",
"color":"light_cyan",
"connects_to":"METALFLOOR",
"move_cost":2,
"light_emitted":120,
"roof":"t_flat_roof",
"flags":["TRANSPARENT","INDOORS","FLAT","ROAD"],
"bash":{
"sound":"thump",
"ter_set":"t_null",
"ter_set":"t_metal_floor",
"str_min":200,
"str_max":500,
"str_min_supported":200,
@@ -130,6 +163,78 @@
]
}
},
{
"type":"terrain",
"id":"t_strconc_floor_olight",
"name":"strong concrete floor, overhead light",
"description":"Extremely resilient floor made from carefully placed rebar and poured concrete with a still-functioning light attached to the ceiling above.",
"description":"Extremely resilient floor made from carefully placed rebar and poured concrete, capable of providing protection from the elements. As for the matching roof, it still requires supporting walls, otherwise it may very well cave in.",
"u_message":"This wall is perfectly vertical. Odd, twisted holes are set in it, leading as far back into the solid rock as you can see. The holes are humanoid in shape, but with long, twisted, distended limbs.",
"popup":true
}
]
}
]
}
},
{
"type":"terrain",
@@ -160,6 +193,7 @@
"symbol":".",
"color":"light_gray",
"looks_like":"t_rock_floor",
"connects_to":"ROCKFLOOR",
"move_cost":2,
"roof":"t_open_air",
"flags":["TRANSPARENT","FLAT","ROAD"],
@@ -228,6 +262,7 @@
"symbol":".",
"color":"light_gray",
"looks_like":"t_concrete",
"connects_to":"CONCRETE",
"move_cost":2,
"flags":["TRANSPARENT","FLAT","ROAD","MINEABLE"],
"bash":{
@@ -246,6 +281,7 @@
"symbol":".",
"color":"light_gray",
"looks_like":"t_pavement",
"connects_to":"CONCRETE",
"move_cost":2,
"flags":["TRANSPARENT","FLAT","ROAD","MINEABLE"],
"bash":{
@@ -264,6 +300,7 @@
"symbol":".",
"color":"yellow",
"looks_like":"t_pavement_y",
"connects_to":"CONCRETE",
"move_cost":2,
"flags":["TRANSPARENT","FLAT","ROAD","MINEABLE"],
"bash":{
@@ -301,6 +338,7 @@
"description":"High-quality and tough checkered flooring to reduce risk of slips and falls.",
"symbol":".",
"color":"light_cyan",
"connects_to":"METALFLOOR",
"move_cost":2,
"flags":["TRANSPARENT","FLAT","ROAD"],
"bash":{
@@ -324,6 +362,7 @@
"description":"A section of flooring made out of a tough, rubbery material. Colored a simple white.",
"description":"A deciduous tree of the genus 'Quercus', with bark cracked into rectangular black plates split by narrow orange fissures. You could peel off the bark sections if you examined the tree more closely. You could cut it down with the right tools.",
"description":"A deciduous tree of the genus 'Quercus', with bark cracked into rectangular black plates split by narrow orange fissures. All usable bark has been stripped off. You could cut it down with the right tools.",
"description":"A gigantic fern like nothing you've seen before. The leaves are a bright scarlet color with a net like structure of green veins. The multipronged trunks appear to have the consistency of balsa wood.",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom inside a flask that is universally known to indicate SCIENCE. You could swipe a Visitor's Pass near it to unlock the gates.",
"//":"Entrance card for a lab. Low security access.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_maintenance_green",
"name":"Maintenance: green zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a wrench on a green background. You could swipe a maintenance employee badge near it to unlock the gates.",
"//":"Entrance card for a lab. Low security access.",
"query_msg":"Are you sure you want to open this gate?",
"success_msg":"You opened the gate!",
"redundant_msg":"The gate is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_maintenance_yellow",
"name":"Maintenance: yellow zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a wrench on a yellow background. You could swipe a maintenance employee badge near it to unlock the gates.",
"//":"Tier 2 card for a lab. Medium security access.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_maintenance_blue",
"name":"Maintenance: blue zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a wrench on a blue background. You could swipe a maintenance employee badge near it to unlock the gates.",
"//":"Tier 3 card for a lab. High security access.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_transport_1",
"name":"Freight hauler access card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a truck. You could swipe a transporter's badge near it to unlock the gates.",
"//":"Entrance card for a lab. Low security access.",
"query_msg":"Are you sure you want to open this gate?",
"success_msg":"You opened the gate!",
"redundant_msg":"The gate is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_security_yellow",
"name":"Security: yellow zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a taser on a yellow background. You could swipe a security employee badge near it to unlock the gates.",
"//":"Tier 1 card for a lab. Medium security access.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_security_magenta",
"name":"Security: magenta zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a pistol on a magenta background. You could swipe a security employee badge near it to unlock the gates.",
"//":"Tier 2 card for a lab. Medium security access.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_security_black",
"name":"Security: black zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a rifle on a black background. You could swipe a security employee badge near it to unlock the gates.",
"//":"Tier 3 card for a lab. High security access.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_mutagen_green",
"name":"Researcher: green zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a flask on a green background. You could swipe a researcher scientist badge near it to unlock the gates.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_mutagen_pink",
"name":"Researcher: pink zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a flask on a pink background. You could swipe a researcher scientist badge near it to unlock the gates.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_mutagen_cyan",
"name":"Researcher: cyan zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a flask on a cyan background. You could swipe a researcher scientist badge near it to unlock the gates.",
"query_msg":"Are you sure you want to open this door?",
"success_msg":"You opened the door!",
"redundant_msg":"The door is already open."
}
},
{
"type":"terrain",
"id":"t_card_science_medical_red",
"name":"Medical: Red zone card reader",
"description":"This is a smartcard reader. It sports the stylized symbol of an atom and a syringe on a red background. You could swipe a researcher scientist badge near it to unlock the gates.",
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.