* Added solar panels to the roof of LMOE bunkers
* Put the solar unit symbol in the right json
* added fill_ter field
* defining the solar panel directly in the mapg json
* As requested, changed solar panels into nested
* Update data/json/mapgen/nested/lmoe_nested.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen/nested/lmoe_nested.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Fixed small syntax error
* Update data/json/mapgen/nested/lmoe_nested.json
Co-authored-by: Procyonae <45432782+Procyonae@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Procyonae <45432782+Procyonae@users.noreply.github.com>
* Adding the snippets and snippet categories
* Created new harvest categories and added new snippet categories to them
* Second pass of adding new snippet categories to cover edge cases
* Dividing humanoid and animal fungal Zs
* Applying pupating harvest groups to relevant monsters
* Subdividing electric zombies into animal/humanoid (zaptors exist) and applying to relevant monsters
* Apply grabber to relevant monsters
* Applying mushroom humanoid and animal snippets to relevant monsters
* Typo Fix
* Applying Dog Categories to relevant monsters
* First Ferret Typo fix
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Second Ferret Typo Fix
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Tiny mistyping fix on a Grabber snippet.
* Third Ferret Typo Fix
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Tonal fixes to Pupating and Dog snippets following Venera's suggestions.
* Getting the quirky name snippet in a dog snippet to work + fixing typos
* Small typo fix
* Double Space after period
* Fixing harvest id typo
* Fixing kevlar in pupating hulk snippet group.
* Forgot to change those.
* Abandoning fungal juggernaut snippets
* Abandoning fancy dog name snippet
---------
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Estocs had the same issue as Rapiers, so that's fixed now.
* Added Chainmail Sheet Nested Group + Hid the recipes into the nested group
* Added Spears Nested Group + Hid their recipes into the Nested Group
* Added new Cow Armor sub-category to Animals category, made all cow armors part of it
* Esotericist made a good point to me that difficulty should be that of the lowest in the group
* Small fix
* Fixing estocs
* Fixing the spears group a bit.
* Adding a subnest for Pikes
* Fixing the DinoMod cow armor issue.
* Revert "Fixing the DinoMod cow armor issue."
This reverts commit d11921d31d.
* Revert "Adding a subnest for Pikes"
This reverts commit 3a77c468f2.
* Fixing the cow DinoMod issue (the right way this time)
* Adding a subnest to the spears nest for pikes, hiding the recipes for them into it. (without fumbling everything this time)
* Oops forgot to remove the halfpike
* Replaces AIM_CONTAINER2 with a check in action_move_item()
* Be less strict on container interactions
* Simplify canputitems()
* Add stepping out of container view to the parent location
* Fix crash from non-carried bucket spilling, and made it spill at location rather than in player's pockets
* Make "can't put items there" messages less obtrusive
* Mark container if the other pane is viewing inside it
* Allow moving all between containers
* Swap panes when moving between container layers
* Make container marking recursive
* Remove unused variable
* Re-add "not enough room" warning
* Revert some of the spill changes
* Also show error if trying to move container into child container
* Update data/raw/keybindings.json
* Update data/raw/keybindings.json
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* house update: house_01 in-construction variation
* Update house01.json
* lint
* Update house01.json
* Update house01.json
* Update data/json/mapgen/house/house01.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen/house/house01.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add in a new palette and itemgroup fixes
the palette will be used for all the in-construction houses (when i get to them, at least)
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* shut it \bot, please
* Update construction.json
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* bot stop doing this
* i have done this newline many times
* Update construction.json
* fix the floor under the palettes, move the rest to the garage.
* use nested chunks instead of always spawning construction pallets
* move nested to a separate file
This file will be used to house all other nested pallets for other construction homes and buildings, at least, when i get to them.
* Revert "move nested to a separate file"
This reverts commit 9bb3f2932a.
* Update house01.json
* add in a new palette and itemgroup fixes
the palette will be used for all the in-construction houses (when i get to them, at least)
* shut it \bot, please
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/mapgen_palettes/construction.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix the floor under the palettes, move the rest to the garage.
* use nested chunks instead of always spawning construction pallets
* move nested to a separate file
This file will be used to house all other nested pallets for other construction homes and buildings, at least, when i get to them.
* Revert "move nested to a separate file"
This reverts commit 9bb3f2932a.
* minor fixes, use `items` instead of `place_items`
* lower chances for tools more
* more reduction of chances, and one moar zombie
* spread out the loot throughout the house
* ok at least the error this time is my own
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Minor changes to a special lakeside cabin
* restore occurences and remove uniques, instead utilize nested chunks for a chance to spawn zombie cages
* revert first commit
* Adjust ranges of 9mm SMGs and carbines
* Adjust ranges of 5.7mm SMGs, long-barreled pistols and carbines
* Adjust ranges of .45 Colt carbine
* Adjust ranges of .45 ACP SMGs and carbines
* Adjust ranges of .22 LR SMGs and carbines
* Adjust range of .380 ACP carbine
* Adjust ranges of .44 Magnum carbine
* Adjust range of 4.6 mm SMG
* Adjust range of .500 Magnum rifle
* Update 45.json
* Update Pennsylvania long rifle range
* Remove duplicate range entry
* Remove another duplicate entry
* Added nested mapgen
* Added nested mapgen
* Added custom spawn groups
* Added beaver dam
* Added burnt tree stump
* Un-added burned tree stump.
I could not find the "mx_point_burned_ground" mapgen definition, so I could not change the stumpt in to burned ones. Is it hardcoded?
This was the main intent of this furniture so I removed it again.
* Fix typo
* Update data/mods/innawood/furniture_and_terrain/misc.json
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Update ar15 upper stats
Attempt to rightsize weights, volumes, and linearize the language used in their naming.
* Fix reloaded .450 penetrator
Correct the copy_from field on reloaded .450 xtreme hunter, which changed this specific ammo to .50 beowulf ammo type and broke it's usage.
* Update conversions.json
Bring 16 inch .300BLK weight down
Remove previously added "civilian legal" from 16 inch .223
* Update m16 and m4 upper weights
* Update 300 blk 16 inch weight
* "relative": can be used with qualities
* Made delete more sensible and went through (hopefully) all uses of both
* Made delete more sensible and went through (hopefully) all uses of both
* Added More Civilian Dialogue
Created some new topics for the Futile Fighter and Overconfident Officer to talk about.
* Linting
Whoopsie, forgot to lint the new topics
* Typo Fixes
Accidentally used the dollar sign instead of the ampersand. All fixed now
* Apply suggestions from code review
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Create misc_palettes.json
Added a directory and file for mapgen palette definitions
* Create overmap_terrain_stream.json
Added directory and file for overmap_terrain definitions
* Moved misplaced file
* Added mapgen for new map element
* Create stream_mutable.json
Main file to generate the new mapgen
* Update data/mods/innawood/overmap/overmap_terrarin/overmap_terrain_stream.json
Concatination of overmap terrain IDs
Co-authored-by: Procyonae <45432782+Procyonae@users.noreply.github.com>
* Update overmap_terrain_stream.json
Added flag for better interaction with forest tiles
* Update stream.json
Allows better interaction with forest and swamp tiles
* Update stream.json
Increased animal spawn rates
---------
Co-authored-by: Procyonae <45432782+Procyonae@users.noreply.github.com>
* Non f_sign Signage
* Adds a flag for signs that should specifically always be signs and provide messages as such
* Documentation
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update doc/JSON_FLAGS.md
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
* Update mapgen.cpp
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
I was doing some scouting around a test word and happend to find a
skateboard, cool I rode a litte checked the parts and on dear it all
needs jacking
fix the requirements for installing and unintalling the parts
deck: no reqs, no time required to drop a skateboard deck in the ground
- add longest side too
trucks: you need something like an adjustable wrench and a screwdriver
to install them, also a little time, removing 8 screws really doesn't
take much time - they are also made mostly from aluminum
wheels: you need something like and adjustable wrench and very little
time to install them
I did not like the name of the folded stakeboard item "folded" doesn't
imply a healty skateboard
* refactor test for npc boarding player vehicle
* clear pathfinding cache on adding/removing vehicles
---------
Co-authored-by: mqrause <martin@qrause.de>
* Make trashcan it's own item
* move containers to container folder
* make it deployable back to f_trashcan
* tweak the terrain size accordingly
* lint
* make can actually watertight
* Typos are extinct for now
* Spell checker
* Moved chunks of graded in line with lumps
* Went back and changed weps again
* Added some extras Sadenar spotted and a few others I found along the way
* Update dictionary.txt
* Add files via upload
Vitrifaction event alpha. Currently doesn't spawn in overmap generation. To test, spawn overmap special "quiet_farm" and enter either of the overmap tiles by crossing the boundary on foot.
TODO:
-set multiple spawn locations for glass totems
-adjust light levels
-create more welcoming terrain (i.e. allow a clear path with no more than one point of passing over glass grass)
-palatteswap at least one set of tileset sprites to make it less visually garbage
* Rename vitrified_snippets.json to data/json/vitrifaction/vitrified_snippets.json
* Rename vitrified_items.json to data/json/vitrifaction/vitrified_items.json
* Rename vitrified_farm_palatte.json to data/json/vitrifaction/vitrified_farm_palatte.json
* Rename vitrified_farm .json to data/json/vitrifaction /vitrified_farm .json
* Rename vitrifaction_effects.json to data/json/vitrifaction /vitrifaction_effects.json
* Rename vitrifaction_effect_on_condition.json to data/json/vitrifaction /vitrifaction_effect_on_condition.json
* Rename overmap_vitrified_terrain.json to data/json/vitrifaction /overmap_vitrified_terrain.json
* Rename overmap_vitrified.json to data/json/vitrifaction /overmap_vitrified.json
* Rename unvitrified_farm.json to data/json/vitrifaction /unvitrified_farm.json
* Rename terrain-vitrified.json to data/json/vitrifaction /terrain-vitrified.json
* Rename talk_vitrified.json to data/json/vitrifaction /talk_vitrified.json
* Rename furniture-vitrified.json to data/json/vitrifaction /furniture-vitrified.json
* Rename vitfrified_trait.json to data/json/vitrifaction /vitfrified_trait.json
* Rename vitrified_farm_palatte.json to vitrified_farm_palatte.json
* Rename vitrified_items.json to vitrified_items.jso
* Rename vitrified_snippets.json to vitrified_snippets.json
* Delete data/json/vitrifaction directory
* Updated EMT, EMT Firefighter, and Paramedic professions
An EMT from NE suggested we balance the professions a little to reflect reality: an EMT-B doesn't have the same qualifications as an EMT-paramedic, and only EMT-paramedics are hired as firefighters. So, minor changes;
-EMT firefighter is now Paramedic Firefighter
-EMTs have a slightly lower first aid skill, and don't have advanced wound care, or human dissection but do have an epipen and some asprin.
-Paramedic firefighters now have a single shot of morphine, an epipen, and a couple bandages.
-Paramedics have had epipens added to their kit.
* Update data/json/professions.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fixed redundant first aid kit stuff
* linted. again. not sure why it didn't take the first time.
* aspirin typo
* Update data/json/professions.json
* paramedics may have a little opioid, as a treat
* commas.
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Update Lighting values for modern, non-incandescent lighting. Floor and wall lamps are based on the Phillips EcoHome LEDBulb 10W E27 6500KHV 3PF/6AR. Floodlights and directed floodlights, using the 8000 lumen comment under directed_floodlight, are based on the BVP130 LED160-4S/740 PSU OFA52 ALU C1KC3 and BVP125 LED80-4S/740 PSU OFA52 ALU C1KC3 respectively.
Vehicle headlights were not changed as halogen bulbs are still fairly common.
* Update data/json/furniture_and_terrain/appliances.json
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Overwrite/delete/extend behaviour for techniques
* Update src/item_factory.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Obeyed clang-tidy
* Forgot to update the header in line with last change
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Rubik / portal voice dialogue
* telepathy on portal voice
* debug fixes and typos
* spaces, typos, some word choice edits
* Typos + Guard telepathy snippets
* formatting
* Dealing with the traitor guard
* Add generic dialogue options, edit traitor quest options
* Further guard edits
* Everything works except mapgen update
* more attempts to get refugee traitor teleport to work
* Add om_terrain
* Testing and fixes
* missing spaces
* Change stealing reset EoC to check for any stealing, not just stealing at the limit
* Cache whether a character has bionics with certain json flags
* inline effective_dispersion() and reuse parallax
* Cache those variables that are constant during aiming calculation
* Utilize the cache
* Astyle
* Colorize JSON errors
* Make formatter feed source filename to TextJsonIn
* Throw exception instead of dumping output to std::cerr
* Adjust math parser's caret appearance
* Set color in chkjson
* Adjust tests and formatters
* Add json error cursor check for unicode string
* Squelch global state lint for entry points
* Adjust stream offset so the buffer for utf8_width is pointing at a codepoint
* Rough draft
* Basic concept done
* Minor fixes, WIP catchup EoC to prevent them from escaping the reality bubble
* Special attacks implementation(still WIP....)
* Fix alpha talker
* Fill in some more of the missing functions
* More cleanup
* More refinement
* Fix spell definitions
* Add the knock spell
* Remake illumination spell as an attack, which works.
* Implement attack_player_only faction
* Add all the tree transforms
* Finish off the special attacks
* Despawn shadow when it's time for him to go
* Implement catchup eoc (teleports towards you if you go too far)
* Add light weakening (needs separate C++....)
* Finishing touches...
* Get flamed. A lot.
* Please the faction relationship tests (hopefully)
* Snek changes
* Wording, snakelets have less sharp eyes
* Change notes
* Update deathrattle desc
* More flags. Snakes can now climb, are counted as animals, avoid danger like living beings.
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update effects.json
* further improvements
* Apply suggestions from code review
* Apply suggestions from code review
* fix tests and hardcoded effects using old smoke effect
* code is super confusing
* fix the bug with unobtainable software_math anr software_electronic_reference
* Silence dream monsters spells
* electronic halo finally got it's battle mode
* boost dreamsmith's magic enchantments
* inventor's welder to more requirements
* fix#66723
* make some jmath template for future usage
* dreamsmith now has forged tools to make
* make dross research even cheaper, due the amount of recipes it has now
* Move inventor tools into tools category
* spell issues
* Update data/mods/Xedra_Evolved/items/tools.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Add moon_tears as pooka gladius material
* Update data/mods/Xedra_Evolved/items/tools.json
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Update data/mods/Xedra_Evolved/items/inventor/armor.json
* Update data/mods/Xedra_Evolved/items/inventor/armor.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* added belted flag for items, that cover torso_waist
* Update armor.json
---------
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add compound crossbow to itemgroup of archery space
archery space are what holds bows in the hunting supply store. I now added compound crossbow to the itemgroup.
* accidental linting issue fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Expose succession cooldown to json
* Prevent large turn # from being improperly read in scientific notation
(e.g. turn 7.776e+06 would resolve as 7! That is very bad!)
* Only set the cooldown on a new game, not every time it loads! (This is also very bad!)
* Clean up succession EOCs to pass var instead of magic numbers
* Update data/json/npcs/missiondef.json
Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>
---------
Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>
* Wrote the snippets
* Switch boomer snippets to screamer snippets based on feedback + fix bone typo
* single character typo fix
* test commit to see if I can work on this
* added zombie_harvest_general_deeper
* Typo fixes following ShadowFerret's suggestions
* Adding composite zombie snippet categories
* Adding the new messages to the already existing harvest recipes
* new harvest categories + the monsters they apply to.
This should add all of the needed new harvest categories for the snippets so far added. Some of the applicable monsters for some categories were skipped for now (for example, howling waif is a screamer zombie, but it's also a child, so it will require a child+screamer harvest category for its specific flavor snippets to show up best.
* Tiny typo fix
* Punctuation fixes + Realized I forgot to change the variables in the generic zombie harvest composite group
* Oopsie
* Subdividing the zombie anatomy snippet groups into humanoid and animal alternatives
* New harvest groups and assigning zombies to them
I also fixed zombie dogs not dropping tainted leather as a bycatch.
* One debug monster was jumbling up everything.
* Giving up and giving the test monsters their zombie harvest group back
* pt. 1 of kevlar snippets
* typos
* pt. 2 of kevlar snippets
* animals dont have tattoos
* Update data/json/snippets/zombie_anatomy.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Part 3 Kevlar
* Ferret syntax change suggestion
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* more hulk snippets
* glandular
* Accept typo fix.
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Removing punctuation from composite harvest categories.
* Realized I forgot to change generic to generic animal for these.
* Fixing Kevlar Hulks
* Makes the hulk snippets more readable according to Procyanae's suggestions
* Duplicate but committing so it'll resolve
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
---------
Co-authored-by: ZigVert <56202842+Daved27hundred@users.noreply.github.com>
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
I noticed that my NPC companions were no longer very good at getting in
vehicles when I entered them. Sure, they would walk up to the side of
the vehicle, but then they would sit there and make no attempt to go
through the doors to get inside.
It turns out, pathfinding was now considering every vehicle tile a door,
so my companions were trying to open and walk through the walls of my
vehicle to get to me.
This behavior is easily demonstrated with a test vehicle:
(I used an ambulance)
"""" " = windshield, + = door, - = quarterpanel, # = seat
+!#+ ! = player character, @ = npc companion
@----
A test has been added to demonstrate this scenario.
To get into the seat next to the player, the NPC will try to walk
through the quarterpanel to the east of it, when they actually need to
go around the vehicle and enter through the other door.
This is due to a bug in 7fa704b74f, where
the return value of vehicle::next_part_to_open and
vehicle::next_part_to_unlock is treated as though is will be 0 (false)
when the tile cannot be opened/unlocked. However, these functions return
a vehicle part index, and as 0 is a valid vehicle part index, they
return -1 the tile cannot be opened/unlocked.
To fix, check for the correct value, instead of a non-zero value.
In the current version, only "grenade_pouch" spawns inside the military warehouse, which only accepts 40mm grenade rounds. This changes it to also spawn "tactical_grenade_pouch" (which can hold a grenade) in the same spot.
Additionally, the maximum amount for both to spawn is reduced, since they will be sharing the same (x,y) coordinates.
* Implement all-wooden fermenting vat (see #65632).
* Increase the amount of rope needed
It turns out that despite my initial feeling of having overestimated the
amount of rope needed, 1 short rope amounts to 15cm of rope per hoop,
which is a clearly not enough.
With 12 hoops with a diameter of ~3cm, the length of rope needed is at
least 10m (that's about 10 turns to tie up each hoop). I settled on a
long rope in order to keep the recipe simple.
* Use cordage isnstead of string
After testing this in game (Innawood), requirering rope instead of
cordage turned out to bas as time consuming as forging 13 small netal
sheets. Also what we consider makeshift ropes in game is probably closer
to the real thing. I did not implement a separate recipe for the sake
of not adding another hard coded vat.
* Fix clang-tidy warnings
* Adding a whole bunch of arabic armor and weapoins, plus graded steelizing a bunch of stuff
* Oops, don't replace the western weapons book
* Remove duplicate entries, oops
* Remove errant styling file
* Fix errant comma and wrong volume
* Fix issues and remove fancy
* Apply suggestions from code review
Comitting a whole bunch of string change suggestions
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Fix some dictionary stuff
* Apply suggestions from code review
More string fixes
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Fix bad grip enum
* Fixing issues from functional testing
* Update data/json/items/melee/swords_and_blades.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/melee/swords_and_blades.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Fix nested recipe entries
* Removing spaces?
* I think this is the last of them
* Add more words to dictionary
* More dictionary additions
* Correctly spell gurkha
---------
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Initial commit, makes rattlesnakes tamable.
* Remove frog clone
* No snakes were harmed in their update
* Egg group update, now danger noodles spawn as hatchlings
* Turns out... Rattlesnakes hatch their eggs inside em.
* Rattler friends 2.0
* Tamable Wildlife fixes.
* No sneks for reptile eggs
* No rattlers for wild eggs
* Update dictionary.txt
* Update data/json/monsters/reptile_amphibian.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Remove snake spawngroups for eggs
* More rattlers on birth
* Rattler snakelets are less venomous now
* Argh, plural autogenned forms needs a dictionary entry too
* Some fixes
* Default value is 0, sure...
* Lower big rattler dodge
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Most scenarios provide vision of nearest city on start
* Don't forget to document your json levers!
* Oops, no need for test messages
* Please clang tidy
* Blacklist a bunch of scenarios that should not reveal anywhere on start
the forge diviner's can show you the way towards the exoddi base, it
failed for me in my current save, it was mostly a search range thing I
just changed it a little so it has the same values as the pictographic
signpost mission
```
"assign_mission_target": {
"om_terrain": "exodii_base_x0y3z0",
"om_special": "exodii_base",
```
also include an increase of the price of mana mutagen given it was
pointed out by vorm, I am sneaking it in
* Update claw bar volume to be consistent with crowbar
* Adjust claw bar volume to be proportional to weight of crowbar.
* fix expected dps
* Revert "fix expected dps"
This reverts commit 6a1edfadee.
Revert test change
* Reduce damage to match test
* incorporated strength and melee damage enchantment into smash
* removed strength enchantment calculation and added calculation for any ITEM_DAMAGE_BASH
* fixed style
* refactored so that MELEE_DAMAGE enchantment will always be factored in, not just when player is wielding weapon
* forgot a semicolon lol
* reduce impact of bmi on healthiness
* fixes
* Update src/character.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* force normal kcal values
* move it to the right place
* test sanity checks
* Update char_healing_test.cpp
* Update char_healing_test.cpp
* make sure OoO isn't screwing up
* add another healthy_kcal setter?
* keep forcing healthy kcal
* test
* this wasn't it
* set healthy kcal again?
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* ducty
* no crafting
* fixies
* ducty
* no crafting
* fixies
* re-add and change the recipe (1st iteration)
* further edits to the recipe
* swap IDs real quick
* Increased collapsible arrays' mass a little
Mass adjusted to accommodate additional hinges and wires
* Fixed collapsible solar arrays' output
The 60% power output loss was not justified because the cells are not blocked from the light by any additional cover, which means the only losses would be:
1) on wiring (which is bonkers as 2 additional wires won't make a difference), or…
2) from cutting 60% of the initial solar array area (which is not true because the disassembly gives us full solar array back, not the remaining 40% of it).
* Update data/json/vehicleparts/vehicle_parts.json
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* updated allergen flags for future proofing and bug fixing
* fixed style issue
* added cheese allergen to set_allergy_flags
* reordered static vars in alphabetal order
* Skip drawing when memorizing off-screen tiles, to avoid large off-screen sprites overwriting on-screen sprites due to incorrect drawing order and (hopefully) improve performance
* Fix and unify player position <=> tile position => screen position mapping
* Draw item highlight in lower levels at the correct height
* Fix drawing order and 3d height of vision effects and use hidden sprite for tiles outside view range
* Show boomered vision effect in place of hidden vision effect when boomered
* Reduce number of lower z-levels to iterate through
* Fix map memory range in isometric mode
* Improve comments
* Always draw partial tiles on current z-level
* fix clang-tidy warnings
* Fix clang-tidy warnings again
* Fix top tiles in lower z-levels undrawn in isometric mode
* Repair Firearm Repair Kit Repair
Firearm repair kits used too much energy compared to similar items and its own components.
* Changed charge and descriptions
* Refactor: swap_character now takes 1 arg
1. swap_npc is basically std::swap. Just use that
2. swap_character has a confusing signature. It swaps `this` with the character provided
in the first parameter, but takes an extra parameter of type `Character&`. A reader may
think that it swaps the two characters.
* Refactor shadow_npc - use getter
This refactor will be useful later
* NPC export/import
* Cleanup npc after importing
There are many data fields in the npc class that refer
to world-specific things. This fields should not be exported&imported.
Alternative approaches considered:
1. Instead of cleaning up the fields after the NPC is imported
simply don't export them in the first place.
Good: If someone opens exported file, they will not be
confused by a bunch of fields that do nothing.
Bad: If we forget and accidentally export one field
that we should not have, the cat is out of the bag:
players export their characters and save them and
we are stuck having to cleanup the field on import.
2. Omit the fields on export and then ignore the same fields import
Good: see above
Bad: Dont Repeat Yourself. Over time the two codes might start
filtering different sets of fields.
3. Instead of cleaning up after calling deserialize() skip
reading the fields in npc::load(), Character::load() and creature::load()
Bad: The load() code is already quite complex. This seems easier.
* Fix warning about missing mission on import
When importing an NPC into a different world from the original
a mission id her or his chatbin references may be unused.
This commit silences the warning.
Note: if a mission with this id happens to exist, that is ok too
because it will be cleared in npc::import_and_clean().
* Add version header to export files
* Handle import errors
* Remove includes: code that used them was moved
* Fix windows build error
* Improvements suggested by clang-tidy
* Retry CI (#66413 got merged)
* Delete oom
Where did this file come from?
* Simple bycatch of undesirable single string name for mutant bronze greaves
* Bronze Greaves Nested Category
* Iron Greaves Nested Category
* Bycatch that none of the loincloths had a plural
* Loincloth Nested Category
* Pouch Nested Category
* Small typo on Loincloth Nested Category
* Cloak Nested Category
* Primer Nested Category
* Forgot to change the category description
* Mutagen Nested Category
* Acid Nested Category
* Removing accidental duplicate items
* Simple bycatch of undesirable single string name for mutant bronze vambraces
* Bronze Vambraces Nested Category
* Bronze Helmet Nested Category
* Corinthian Helm Nested Category
* All Bronze Helmets Nested Group of Nested Groups
* small typo fix
* Cleaned up Categories
* Nesting the Mutagen items
* Small fixes
* Fix to from_sample alpha recipe + Fix to rapier nesting
* Slight fixes to the Acid group before I publish as draft and go sleep.
* Pesky typo let me go to sleep.
* Hiding all the recipes except the acids (still need to work on that group)
* Fixing the Nested Acid Group, hiding its recipes outside the nest
* Last few fixes to the Acid Nested Group + Add purifier to Mutagen Group
* Fixed loincloths to let the game auto generate their plurals
* Snail Mail Its Tamable Snails
Adding Tamable Snails in the Tamable Wildlife mod
* Update data/mods/Tamable_Wildlife/mollusk.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
---------
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* Dock Construction Updates
Allows certain docks to be placed on non-flowing shallow and deep water.
* Update data/json/construction.json
* Update data/json/construction.json
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Initial Commit
* Should be done with maps.json
* Corrections discovered while typing out changes
* Makes a new flag PAPER_SHAPED for leather_journal
* Added spawns
* Update id_cards.json
* Added a helpful comment and linted
* Public work sewer map spawn
* Update data/json/itemgroups/books.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* update zippo
* make it take camphine too
* added fuel tin + fixed missing comma
* the price is now right
* lamp oil in homes
* added kerosene and empty kerosene tanks to spawn pools
* fixed mess up
* Revert "fixed mess up"
This reverts commit 04ce67adb2.
* Revert "added kerosene and empty kerosene tanks to spawn pools"
This reverts commit edbeec0aca.
* redo previous change without mangling supplies.json
* removes unnecessary line about camphine
* fix missing ml in pocket
* i should stop changing numbers when i have no idea what they do
* always the typo
* im stupid
* fix for first hub mission & more gear for Dr.Prado
a while back I ran into this rare error involving sunflowers and dirt;
get rid as the game suggest, add a flag to remove all that's there
before placing our custom mapgen
also add a little more loot to Dr. Prado the woman killed by the hub
prototype robot you take care of in the first mission
add some paper, writing utensils and a laptop for the report she's
probably making
a little water, sunglasses and gum - damage the spawned items, the
murder bot presumably trashed the gear
* Update data/json/npcs/robofac/NC_ROBOFAC_SCIENTIST.json
* Update data/json/npcs/robofac/NC_ROBOFAC_SCIENTIST.json
---------
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Bastion fort fallback_predecessor, palette tweaks
* More palette tweaks, tested item spawns, changed monster spawns
* Couldn't resist parameterising it too
* Finished parameterising
Getting a weird crash on "closed" variant
* Makes variants equally likely
* Makes variants equally likely
* Update overmap_terrain.json
* Another random punt even though I already tried this
* Update mapgen.cpp
* Update src/mapgen.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monstergroups/zombies.json
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* mom: remove invalid spell id reference
started a game and looked at the scenarios of mom; one produced an error
`char_perfect_path` is not in the repo so… decided to just remove the
reference
* Add power that Perfect Path replaced to Doomseer
---------
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
Co-authored-by: Standing-Storm <120433252+Standing-Storm@users.noreply.github.com>
* accessories obsoletion
* soften requirements for dreamsmithing researches
* remove copy-from from arrows and bows, because they inherit name, desc and result_eocs when they shouldn't
* add custom FIT flag to items, spawned by dreamsmith armor EoC
* Revert "accessories obsoletion"
This reverts commit e75e3be1fc.
* compound crossbow -> dreamforged crossbow
* Various Down Bed Fixes
1. Fixed the number of down feathers acquired from smashing down beds to account for down feathers coming in sets of 20. (900-1100 rather than 20x that).
2. Created new furniture "f_down_bed" and "f_down_bunkbed" that use down beds, along with construction recipes to make them.
3. Removed down mattresses from being used in previous "regular" bed construction recipes.
* Update construction.json
* Update furniture-sleep.json
* Microcentrifuge now uses charges.
* Slime samples from slime globs
* Added some qualities where it made sense
* Rotary is not precise enough for fine distill
* wine glass
* sponge
* can opener
* blanket
* cast-iron frying pan
* can opener grip
* dish towel
* idk increase it ig? I'm not fighting tests, this is bullshit
* Add ability to cull more farmed/bred animals
* Add sheep+goat children and goat(adults) to the cull list
* Update data/json/monsters/mammal.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Don't report monsters breaking free from unknown grabbers if the player cannot see them
* fix tabbing
* fix whitespace
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Turret Weakpoints & Review
- Added a set of weakpoints for turrets, and a weakpoint set specific to the searchlight (mostly for flavor).
- Gave turrets stab armor. I feel like stab would be the weakest form of attack against turrets.
- Removed STUN_IMMUNE flag from turrets and stuff. Mostly to facilitate them getting locked up through weakpoint effects.
* Update data/json/monster_weakpoints/turret_weakpoints.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monster_weakpoints/turret_weakpoints.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monster_weakpoints/turret_weakpoints.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monster_weakpoints/turret_weakpoints.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monster_weakpoints/turret_weakpoints.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monster_weakpoints/turret_weakpoints.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monster_weakpoints/turret_weakpoints.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* turrets.json: lint, reapply armor change
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: NetSysFire <59517351+NetSysFire@users.noreply.github.com>
* Initial commit
* Fills one type of gap
* Backup before I change course
* New method spawning entire craters overlapping
* Spawn craters adjacent instead to take up less room
* Considered making crater bombs fall from above so they could be placed over the whole OMT randomly
Works fine but #59781 means it looks bad
* Revert "Considered making crater bombs fall from above so they could be placed over the whole OMT randomly"
This reverts commit 139cd1e0f83e1d5840251b9623fc95c658ae985a.
* Testing wibbly wobbly craters
* Revert "Testing wibbly wobbly craters"
This reverts commit 99335b05eb06f237637ff155967ebac8600128b8.
* Splits nests so they don't interfere negatively
Removes wreckage bc it's just a weird item group that doesn't make much sense
* remove_vehicles
* Unhardcoding I missed
* Small crater
* Makes mutable file more sensible
* Corrected and added a couple of phase variants
* Added new distibution stuff and reduced check location area to match min size
* Added new distibution stuff and reduced check location area to match min size
* Updates the docs so they don't reference the old version
* Removes innawoods crater.json
Only appears to exist to remove the radioactivity and that's been removed from the vanilla crater anyway
* Initial commit
* I should really check how to set my n++ indent
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Another one
* Whoops
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* palettized workshop 1
* Reroll test D20ies hoping for all critical successes
* Reroll test D20ies hoping for all critical successes
* Adjusted Aftershock by removing now redundant entries
* Update data/json/mapgen/basecamps/expansion/modular_workshop/version_1/modular_workshop_common.json
* Update data/json/mapgen/basecamps/expansion/modular_workshop/version_1/modular_workshop_common.json
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Add store alternatives from overmap_terrain_commercial
Signed-off-by: Vladimir Masarik <vladimir.masarik@ef.com>
* Add OM alternatives from overmap_terrain_recreational
Signed-off-by: Vladimir Masarik <vladimir.masarik@ef.com>
---------
Signed-off-by: Vladimir Masarik <vladimir.masarik@ef.com>
* Display calories consumed for camp crafting
* Display calories for camp *building*
* Do not highlight camp upgrades that we have insufficient recipes for
* Colorize calorie cost if insufficient
* Implement suggestions from code review
* Update src/faction_camp.cpp
Co-authored-by: David Seguin <davidseguin@live.ca>
---------
Co-authored-by: David Seguin <davidseguin@live.ca>
* Faction succession without death (final C++ implementation)
* horrifying cooldown implementation (but it works)
* Apply suggestions from code review
Co-authored-by: Brambor <tondadrd@seznam.cz>
* move string declaration too
* update EOC to not double-assign mission
* fix take two: clear mission before assigning to prevent dupes
* EOC fixes, take three
* remove bizarre dead code for consumption in non-consumption tests
* more test fixes
* MORE test fixes.....
* remove accidental space to preserve comment
* Update json with now mandatory field
* Remove previously added kludge for somtach contents test
* silence clang tidy
---------
Co-authored-by: Brambor <tondadrd@seznam.cz>
This was causing a frankly hilarious bug that would cause Name::get to return
"Tom" no matter what search flags were passed whenever localization was
disabled. This meant that EVERYTHING was Tom. Have you been to Tom Town yet? No?
That's because it's also called Tom Tom. Can't remember that person's name? It's
Tom. Their last name? Also Tom. Committing some identity theft but stuck on
"Mother's maiden name"? I'll give you a hint: it's Tom.
This commit should fix this disastrous issue by making sure set_language, which
is what loads the names file initially, gets called even when localization is
disabled.
* 3d cached
* remove safeguards
* limit cache to view range
additional safeguards prevent segmentation fault when switching from legacy to 3d draw mode
* comment and astyle
* clang tidy
* fix tests
* Removes city building roads
These roads can spawn the wrong way round facing buildings bc there's no way to control rotation/connections and if there was a way they'd be redundant anyway.
* Gives the Rest_Area proper road connections
Also adds a bike rack furniture bc I needed the corner to look less weird
* Improves State Park 's road connection
Connects road, removes SIDEWALK, lines terrain up better
* Fire Lookout Tower moved to trail
Flipped map so it faces north
Made it spawn on existing trail using forest_trail_intersection to make a nicer connection using a nest (connecting it with regular trail worked but "from": didn't make the extra connection weirdly)
Renamed trail_intersection forest_trail_intersection and changed it's OMT to a more appropriate O
* Reverses test occurences
* Wind turbines spawn in 3s near road
Can't think of a good way to slightly displace each one in a line neatly without z-level nests or 3 copies of the map so they're in a very boring grid straight line
Claimed the corners to prevent silly spawns, could claim the whole outside but that seems fairly unnecessary
Upped occurrences to account for more difficult spawn condition, may need tweaking
* Gun shows spawn near roads in fields and can rotate
Changed OMT symbol to a G so the rotation makes sense
* Campsites spawn in sensible places
Regular campsites spawn adjacent to trails
Survivor field campsite spawns in field
* Removes lumbermill sidewalk, occupied GLOBALLY_UNIQUE
* junkyard meh road connection
Removed SIDEWALK
Added from connection
Slightly tweaked terrain but can't make it look good with minor changes
* Corrects hotel tower coords
* Adds looks like to bike rack
* Rotates Public_Works so it faces north
Hopefully I didn't mess up any coords, it looks fine from a little testing tho
* Removes malls extra road
Missed it before, same issue as the others
* Replaces road_end with from
* Adds flags to the TCL
* Fixes prison OMs
* Adds a version of s_lot without SIDEWALK
Applies it to all specials using s_lot
Changes mine road connections
* Removes mansion's SIDEWALK
They could do with proper parking though
* Lint
* Fixes lumbermill ocu occurrences
* Adds migration for trail_intersection
* Restores but renames mansion abstracts to work with OM mods
* Restores but renames mansion abstracts to work with OM mods
* Saw kevin has a open PR dealing with making things GLOBALLY_UNIQUE so removed them
Removed "LAB" from TCL to see if it fixes the test fail
* dream armor is comfort now, and not varsize
* fix some dreamsmith weapon descriptions
* Remove artifact reference from mad genius mutation, add to dreamer one
* Fix space issues
* Fix lizard tail doesn't learn devil tail spell
* Further decreasing of inventor sparks, because it's still super slow
* adds the barrel lengths to the mods.
* Update data/json/items/gunmod/conversions.json
* Refactors MDRX conversion kit volumes to bring them in line with the numbers already put down. Couldn’t find any statistics that could lead to a more real-world faithful representation, so the numbers were all factored using ratios.
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Flag to use charges when hit
* use power when hit
* use power when hit flag
* Update flag.cpp
* Update flag.h
* Update tool_armor.json
* Update character_armor.cpp
* Update character_armor.cpp
* Update character_armor.cpp
* handle running out of energy
* Update src/character_armor.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/character_armor.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Json test map
* Copy and pasted some code
* Actually bothered looking how it works
* Made up more code
I'll probably try to pull the distribution member out as a member of mutable_overmap_placement_rule instead, need to figure out how to change to value depending on the bounds bc I think it's a pointer rn
* Still no idea what I'm doing
I'll work out how to do the bounds in the right scope eventually
* Temp
* Revert "Temp"
This reverts commit 63dc1e6b0a.
* Maybe getting somewhere?
* Actually compiles :D
* Updating the json test map
* Error for multiple distributions
* Bot go brrr
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Bot missed something the first time somehow idk
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Removes test map
* Documentation
* Include climits for INT_MAX
* A picture is worth 1000 words, shame I'm stuck with words :c
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fix an id so ups don't do an irreversible transformation
also take care of some old id references
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Update mf_predators.json
* Update wilderness.json
* Update mf_predators.json
* Update mf_predators.json
* Thanks, Venera, but this threw a wrench into my plan for relly quick fix
* Dammit
* Initial Commit bc I've stashed a million times
* Need to rebase for nest
* First proper commit
* Misc changes
* Added overrun furniture, vehicle spawns, not overrun spawns
* Second Pass
* Fixes
Makes zeds spawn correctly in overrun version
Removes array from f1 case nests bc it doesn't seem to be supported
Changes half walls back to full walls and adds barbed wire 'roofs' bc you can see and move through half walls
Corrects map items spawn location
* Tweaks and migration
Adds migration for renamed id
Makes trash spawn chance 100% rather than 1% in dumpsters
Removes half the bible/phone book spawns so it's just one set per room
Removes the internal chair and trashcan in overrun variant
Adds a couple of potential outside spawns on the regular variant
Replaces dresser item group with the more appropriate traveller item group
Fixes forest trash location
* Changes overrun parameter to a bool bc it's an unused feature
* Fixes downspout placement
* Reworks road connection
Removes SIDEWALK, adjusts terrain on border, makes it spawn on existing roads
Also fixes too many arrows spawning/no bolts with crossbow
noticed some dirt tiles under those chair vechicles, add terrain
definitions for symbol - fixfixfix
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
Since the wrist rocket has a wrist brace, but isn't craftable, I wanted the one you can craft to have an optional wrist bract, too. I added it through the replacement stock mount and the tail hook stock. It improves the slingshot, but even with the laser sight it's still weaker than the wrist rocket in every regard.
* Improve CMake behavior on Unix and macOS
* Make USE_PREFIX_DATA_DIR on by default on unix
* Create LC_MESSAGES dir for CMake's lang/mo targets
I'm not sure when exactly this became a problem, but msgfmt expects its output
directory to exist, which includes LC_MESSAGES and CMake wasn't doing that. This
should also correct a CI failure for CMake.
My guess is this issue went unnoticed for a bit since if the LC_MESSAGES
directory was previously created (e.g., by running lang/update_pot.sh) it tends
to stay around until you do a fresh clone of the repo.
This used to be a test for cata::optional, but now it pointlessly tests std::optional. I am sure we can assume that the standard library has its own test suite. Ref: #64333
* enable iso
* reimplement height_3d
* store zlevel_height in json
* scaling fallback fog intensity
* height_3d for fields and indicators
* disable 3d memory for now
memorized tile gets drawn on the wrong z-level
* astyle
* disable fog for legacy iso
* Update compose.py
* lint py
* tweak ultica height
measured from t_wall sprite
* update fog calculations
Co-Authored-By: Jianxiang Wang (王健翔) <qrox@sina.com>
---------
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* increase penalties to dispersion at low skills.
* make skill effect on base_aim_speed_cap frontloaded
* Update src/character.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* make aiming a combo of limb scores
* Low marksman skill makes it harder to reorient your aim
* add a final divisor to aim speed based on skill
* Update src/character.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* attempt #1 to fix this test
* test fix
* more test fixes
* more fixes
* Update ranged_balance_test.cpp
* Update ranged_balance_test.cpp
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* pedantry: "A Canadian goose" to "A Canada goose"
* pedantry: only mention ruby-throated hummingbirds
Change the description for a generic hummingbird to just mention ruby-throated
hummingbirds instead of saying it may be another species.
There are rare, rare, rare sightings of a Rufous hummingbird in New England but
for gameplay purposes this is basically never, meaning any hummingbird seen is ruby-throated.
* fixup! pedantry: only mention ruby-throated hummingbirds
* index active items using unordered_set
* Add invalidation of the index cache
* Fix include
* clear the index when invalidated
* rearrange
* Comment updates
* andrei's patch: use safe_reference instead of bare pointers
Co-authored-by: andrei8l <andrei8l@users.noreply.github.com>
* Remove remove() dead code
* Try to satisfy clang-tidy
* Make it build
---------
Co-authored-by: andrei8l <andrei8l@users.noreply.github.com>
* Allow setting clang-tidy path for check-check_clang_tidy.py and fix doc string
* Fix clang-tidy test errors on Windows
* Suppress -Wredundant-decls for deliberate redeclaration
* Suppress clang-tidy warnings for gettext deprecation
* fix mad damage amount when the game tries to add flat MELEE_DAMAGE enchantment
* apply new welding standards from #64868
* bio warhead has bigger damage and AoE now
* you can link up inventor tools now
* add xedra laptop snippets
* add visibility to karma arms
* fix some weird limb and item interactions
* add xedra_laptop to xedra office location
* fix some effect descriptions
* Two new spells for dreamer - Stalker's Oculars and Devil's Tail
* fix me using wrong escape character for color code
* spelling
* Apply suggestions from code review
Leaving the text message typos for Guardian to decide
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Fixing local file spaces
* Fix dreamforged items gives boosts when held insteand of worn/wield
* Fixing space problem with snippets
* Replace inproper spaces with proper
I curse you, QuillBot
* and again
* and again
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Reserve vector size when deserializing vparts
* Move the fake part instead to avoid copying overhead
* Early exit when there's definitely nothing to butcher
* Clang-tidy
* Replace non-functional code owner file with auto-request-review action
* Add an entry for myself to test it
* Add @GuardianDll to reviewers.yml
* Use modified version of auto-request-review
* Only keep the last instance of the request review action running
* Added city outpost for bandits
* Adding bandit outpost in cities
* Linting everything
* Changed flavor from bandits to military deserters
* Linting, folder name
* Fix spawn likelihood
* Changing space in folder name to underscore
I believe the space is causing one of the tests to fail, so I'm trying this to see if it works with an underscore instead.
* cut redundant entries/general map fixes
* Change "B" in overmap to "D"
* Change theming from mini lab to military cache
* Adding unique flag + increasing spawn weight
* Push spawn weight up a touch
Trying to pass a test that failed because the new map locations were never spawning.
* [Xedra Evolved] Artifacts look like things other than books
* Name
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* Apply suggestions from code review
---------
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Don't allow to scan books that are owned by other character
It was possible to scan books from merchant inventory without
buying them.
fixes#65840
* Fix formating
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Add new helmet variations, reflavour the existing close helm
* Add recipes
* More thickness = more steel needed
* Whoops
* Update data/json/items/armor/helmets.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Bot forced me to do this
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Include new recipes into nested groups
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Oversize Duffel Bag
Adds the OVERSIZE flag to the duffel bag.
* Oversize single-strap bags
Adds the oversize tag to various single-strap bags that were missing it.
police roadblocks can spawn 20+ zed cops swat zeds etc combined with the
distraction offered by the nearby turrets and decent supply of guns and
ammo around in corpses and the back of police cars makes for a super
easy loot party, pretty much everyone in the road block is easy prey for
someone with half a working brain
reduce the zed spawns by half, the special still gives a good amount of
loot, the cars and corpses have good changes of setting up for a good
gunfight, just not as much anymore
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
quite a few hours of play testing deemed the chances of first aid kits
and survival kits in cars a little too much; I live on the run myself
just hopping from place to place in my good old car, I just found too
much stuff in other cars, so much I don't bother hitting specific places
for med supplies
tone down the chances I added in my expansion of stuff spawning in cars
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* initial work
* Initial commit for new armors, doesn't work as its complaining about mc_chainmail_face
* Last few fixes, hopefully
* More fixes
* Add case hardened versions, also realized why there wasn't a tempered metal already and removed it as a result
* Adjust coverage of leather, make heavier
* lint json
* More linting and add to dictionaries
* fixing build issues
* Convert integer parsing test to use normal TEST_CASEs
* Rename test name too similar to another
* Test to enforce normalized test names
* Normalize TEST_CASE names (scripted)
* Update character.cpp
* Adjusting the printing order of information
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* oh the test
* try to pass test
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* re run the fucking test
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* pass test
* Unrelated test error, I'm only trying this one last time
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Log SDL renderers on one line
* Don't try to enumerate non-existing directories
* Remove a few more lines of log noise
* Actually leave the test world for inspection
* Normalize avatar in iuse_test.cpp to create bodyparts for effects
./tests/cata_test --rng-seed 1686796277 "item cannot contain contents it already has","Sawed off fits in large holster","bag with restrictions and nested bag doesn't fit too large items","pocket_leak","stacking_over_time","item length sanity check","techniques when wielded","armor rigidity","armor_stats","book info","food character is allergic to","list of item actions","tool info","pocket info units - imperial or metric","ammo restriction info","tool transform when activated","eyedrops","antifungal","antiparasitic"
* Put water in bottles in crafting_test
./tests/cata_test --rng-seed 1686797449 "check amphetamine addiction effects","check_monster_behavior_tree_locust","check_monster_behavior_tree_theoretical_absorb","Bionic power capacity","bionic UIDs","bionic weapons","included bionics","fueled bionics","cardio is and isn't affected by certain traits","total crafting time with or without interruption","prompt for liquid containers - crafting 1 makeshift funnel","prompt for liquid containers - batch crafting 3 makeshift funnels","recipes inherit rot of components properly"
* Clear map in item degradation tests
./tests/cata_test --rng-seed 1686874819 "check mutagen addiction effects","body_part_sorting_all","body_part_sorting_main","mtype_species_test","cube_direction_add_om_direction","cube_direction_add_int","cube_direction_subtract_int","Damage indicator thresholds","Degradation on spawned items"
* Use invalidation function instead of moves hack
* Initial commit
* Update gutter_unify.py
* Regex
* Fully working
* Removes unnecessary print and list
* Improves term search
* Adds format_json by @mqrause
* Linted
* Linted better
* Test bump
* My bump commit was too long >:c
* Update requirements.json
Adds atomic butter to;
any_butter & any_butter_or_oil
* Update requirements.json to add "extend":
Adds "extend": to Aftershock's requirements.json, to fix the error where atomic butter would overwrite both catagories.
* There's so much heeellllppp
* Refugee centre z1
* Aaaaahhhhh
* OMT stuff
* rc_grounds merging
* It's so crazy it got me doing it
* Place new refctr_*
* More OMT stuff
* Forgot to lint
* Minor palette change
* Reinstate uniqueness
* Temporary json only fix
* Forgot to lint reeee
* Ripped the OMTs to their own file to make them more discoverable and easier to reference in docs once I flesh them out more in future PRs
Added an abstract road OMT and renamed the generic fence to a more generic name, will add special road OMs/port other road ids like the mall/mil base in future PRs
Remembered the hardcoded OMT file exists and made changes to more accurately sim them.
Added a commented description to the first OMT to explain their purpose.
* Initial Commit
* Road and helipad
* Parking and special air
* Roof palette
* Delete mil_base_roof_palette.json
* Replaces z-1 rock with soil
* Finishes OMT changes
* Finishes roof changes
* Fixes z0 ladder change
* The collapsed watchtowers floor should probably still exist
* Restore map's abs_sub after map_coordinate_conversion_functions
./tests/cata_test "map_coordinate_conversion_functions","Mattack dialog condition test"
* Rewind time in biometrics tests
./tests/cata_test "basal metabolic rate with various size and metabolism","mutations may affect character metabolic rate"
* Don't place avatar on invalid zlevels
./tests/cata_test "npc_compare_int","npc_can_target_player"
./tests/cata_test "npc_arithmetic","npc_can_target_player"
* Martial art test should clear map
./tests/cata_test "walls should connect to walls as end pieces","Martial art technique conditionals"
* Clear map in turrets test
./tests/cata_test "vehicle_ramp_test_61","vehicle_turret"
* Clear map in gun repair test
./tests/cata_test "cube_direction_add_om_direction","Gun repair with degradation"
* Fix bionic test order dependency
./tests/cata_test "fueled bionics"
* Build light cache in player_activities_test
./tests/cata_test "grenade_lethality_scaling_with_size","activity interruption by distractions"
* Clear map in pockets test
./tests/cata_test "character should lose moves when opening or closing doors or windows","multipocket liquid transfer test"
* Make explicit flag for crafting cache invalidation
* Clear more avatar fields
* Clear time in weary_recovery
./tests/cata_test craft_available_via_vehicle_rig,vision_see_wall_in_moonlight,vision_moncam_basic,weary_recovery
* Create gambesons.json
* move gambesons to their own file
* move gambesons to their own file
* move gambesons to their own file
* move gambesons to their own file
* Create gambeson_crafts
* Rename gambeson_crafts to gambeson_crafts.json
* Adjust unarmed damage
* Scrap Knux: -1 bash, +1 cut
* Update to-hit values in accordance with game_balance.md
* Fist balance should neutral, not good.
GAME_BALANCE.md -
'+2 - "weapon" - A weapon with a dedicated grip shaped to the hand, like a sword, axe, knife, or police baton, or that is strapped to the body (or is a piece of the body). Fists would get a +2 bonus here, bringing them to "0" total, since none of the others would apply.'
* Initial commit
* Standardise special terrain
* There's so much heeellllppp
* Refugee centre z1
* Aaaaahhhhh
* OMT stuff
* Bye bye stoopid
* rc_grounds merging
* It's so crazy it got me doing it
* Place new refctr_*
* More OMT stuff
* Forgot to lint
* Minor palette change
* Reinstate uniqueness
* lab_subway_vent_shaft hidden OMTs
* Temporary json only fix
* Forgot to lint reeee
* Ripped the OMTs to their own file to make them more discoverable and easier to reference in docs once I flesh them out more in future PRs
Added an abstract road OMT and renamed the generic fence to a more generic name, will add special road OMs/port other road ids like the mall/mil base in future PRs
Remembered the hardcoded OMT file exists and made changes to more accurately sim them.
Added a commented description to the first OMT to explain their purpose.
* Adjust EOD helmet protection
* Obviously it had failed
* I somehow fixed density of the helmet or what?
* Change faceplate to thick plastic
* Forgot the variation with lantern on
* laser gunmods works with smg now
* add ray rifle in between of smg "ray gun" and "death ray", minor tweaks to laser weapon
* double the sparks rate, and make a clear message its time to research
* march lord's hoary blast is a line now, to prevent the fact AoE always ignore walls
* small shredder shotgun fixes
* tweaks in blocky pistol
* fix gunmods have 2 minutes to install
* fix bio warhead has 18h to craft, now only 1h
* new gunmod specifically for blocky pistol
* lint
* fix inventor armor disappear when battery ends
* Spatial awareness do not require hands
* Researching at night is easy (because you have a laptop)
* add `hyperboloid` for spell checker
* Apply suggestions from code review
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* bio warhead is ammo, not artifact
* fix undefined bot corpses
* rename ammo name to `bio warhead`
* small random gun tweaks
* fix dreamforged full helm fall in WEAPON category
* fix to small random gun tweaks
* Add simplified crafting recipes for matemax and elec ref sheet for inventor
* All research recipes are SECRET now
* fixes and cleanups in alchemy spells and potions
* replace few spells with direct EoC to give mutation
* Now player forget the recipe if it reached the end of research (uses #65917)
* blackout_rage_drink is not autolearned
* fix eat_dreamdross_ingot do not restore mana
* Boosts and tweaks for eater spells, as i find them a bit weak currently
* Night vision spell uses a night_vis limb score, also cleaning up and balancing the classless version of a spell
* Decrease the vitamin to cast Pull From Beyond, half the time to cast
* added message for default dreamsmith recipes
* Small tweaks of inventor melee
* Sanify eater's mana consumption
* Move field type out of effect folder
* tweaking eater spell flags
* Add colors to effect descriptions, tweak Endurance effect
* Adding dreamer's Karma Arms spell
* add heavy CQC system for inventor
* Decrease crafting time for dreamforged items
* add profs to dreamsmithing
* Add a dreamforged bow and crossbow
* More messages for dreamsmith researches
* fix to More messages
* add Point Blank eater spell
* remove unused `//scannable` comment
* grammar and spelling fixes
* Apply suggestions from code review
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/mods/Xedra_Evolved/spells/dreamer_spells.json
* Update data/mods/Xedra_Evolved/spells/dreamer_spells.json
* karma arms uses copy-from now
* Remove karma arm grabbing effect
* proper name for karma_hand
* Lint
* Apply suggestions from code review
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
I was really turned off by the relatively high movement cost of the
army helmet flashlight pocket, 250 moves to activate the flashlight is a
no-no in combat, so I did not use that feature despite it being rather
cool
change it to 100 moves; could be lower but whatever, as long as it's
usable I am happy
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Allow NPCs to read E-books
From now on NPCs are able to read e-books from suitable devices.
Device needs to be not broken, have some e-books in the memory, have at least 1 charge. Furthermore proper lighting conditions are required (NPCs do not turn on flashlight or screen as player does).
* Update data/json/npcs/common_chat/TALK_COMMON_ALLY.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/game_inventory.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/npc.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/npc.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/npc.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/npctalk.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/npctalk_funcs.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Fix Basic Build crash (unused variable) and fix battery charge requirement listed
* Another fix for basic build error
* Leftover commented-out code clean up (review follow-up)
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The FindSDL2*.cmake modules create the *::*-static imported targets
like VCPKG does. This way we can reuse the same names and reduce the
complexity in the main and src CMakeLists.txt.
* Update animalpound.json
* Update animalshelter.json
* Update antique_store.json
* Ok one at a time seems silly
* A baker's dozen
* Two for tea + cleanup
* Larger palette swaps
* Minor corrections
* Underped s_candy
* Underped arcade
* Changes XEDRA's copy of hunting lodge roof
* Initial commit
Riding helmet, dressage whip, riding crop and a horse trailer
* Adds a draft mutable to house the new farm
* Fix missing comma
* Updated Gig Carriage to use Reins and Tackle
Updated Gig Carriage to use Reins and Tackle. Before, it was using the same generic "controls" part as cars and such.
* Replace farm_horse with mutable
Obsoletes farm_horse and replaces it with a very rudimentary mutable map
* Updated several animal drawn veichles to use Reins and Tackle
Same as I did to the Gig Carriage before with the other carts. Before, it was using the same generic "controls" part as cars and such.
* Merge branch 'horsefarmrevamp' of https://github.com/Procyonae/Cataclysm-DDA into horsefarmrevamp
* Added entrance variants
Also made joins jigsaw like to stop multiple entrances being possible as well as allowing control over the growth of the mutable
* Renamed Horse Mutable to Farm Horse Mutable
* Added phase descriptions
* Update item damage values inline with #64386
Also catch some more naughty tabs
* Actually stop the old map spawning
I'm a dumbass
* Added (first draft attempt at) heavy duty yoke and harness
I got annoyed my yoke and harness kept breaking when playing... this is my first attempt at making any item, so there's almost certainly a billion things wrong.
* minor tweaks and fixes to heavy duty yoke and harness
after testing, fixed some issues and did some tweaks to what I did in the last commit
* more minor tweaks and fixes to heavy duty yoke and harness
After discussion and feedback, changed some things.
* Removed duplicate "to-hit"
* whopse used the wrong canvas for hd harness recepie
* Merge branch 'horsefarmrevamp' of https://github.com/Procyonae/Cataclysm-DDA into horsefarmrevamp
* Swaps out "tailoring_canvas_patchwork"
* Map progress
Adds placeholder maps for the ring, silo and track as well as adding a first draft of a forest gen phase
* Fixed riding helmet and updated the armour to the newer coverage system
* Added two basic tracks
Also reorganised the palette and added an extra phase to suppress errors
* Swaps wheel type out for new system
Not suggesting the values need stay the same
* Update obsoleted start location
Chose the stable to make sense for the cowboy start that it was added for, need to add any variants and may have to move depending on how zhorse spawns end up
* More map progress
Alters extra and house/stables connections to reserve their location with special_field
Removes phases made unnecessary by reserved land
Fills out entrance tiles' borders with special_field to avoid other mapgen and later tiles from filling the space unnaturally. May need to fill all of tile instead of just borders as forest trails can still be left
Adds paddock variants though most are currently unused
All extras and paddocks now use a simplified palette called "paddock" temporarily but will likely be merged back once I've worked on the house/stable and their extras
Removes farm_horse prefixes on names in farm_horse_mutable
Adds currently unused fence maps I were going to use for the borders instead of special_field but I'll probably remove them instead
* Added nested spawns for paddocks
Half arsed the house tile layout
Adds show jump (fence)
Renamed "horse_farm_*" to "farm_horse_*"
Changed forest gen to two phases
* Minor fixes to farm_nested
Forgot to open the game after saving like a wally
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Apply more suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Added show jump nests
Removed unnecessary terrain tags
Minor style change in ot agricutural
* Adds nests of jump nests
Corrected nested nests directions
Extends the paddock dividers so they overwrite any placed nested gates
Adds nests to paddock_1
* Apply suggestions from code review
* Add gate+divider nests to paddocks
Removed now nested gates and growth areas from paddocks
Rounded out some paddock's curves
Made some paddocks into building blocks
Renames paddocks based on shape to easier differentiate them though I'm not happy with them
Centred the ring map
Adds diagonal paddock dividers
Adds manure spawns and alternate feeder loot
* Added more nested map spawns to paddocks
Filled entrance tiles with special_field over just the borders to prevent stuff like caves/trails being left inside the tile
* Added trail phase
Works but still crashes but to forest phase so not set to spawn
Minor fixes to nested placements
* Added a few more connector tiles
Repurposed fence for fields that align with paddocks
Corrected some nested placements
* Added a few more connector tiles again
Added a couple more diagonal paddock maps
* Merged connector+end phases to limit map size
Also merges extra and farm_exit phase so failed connection errors are shorter
Changes relative weights to accommodate change
* Alternate fence (Reverted next commit)
Makes fence a single map with nests based on neighbours, no easy way to limit unwanted connections though so won't be used
* Adds back carriage house and house+stable roofs
Removes some unneeded overmaps
Reverts previous commit
* More map progress
Transposes house to face north
Adds a parking tile that connects to dirt_road_3way
Removed turnback connector roads because they spawn badly and don't add much
Rebalanced weights to favour extras more
Added nests for horses and to conditionally spawn vehicles based on neighbours
Replaced the temporary trail intersection with a proper one featuring nested spawns
* Removed the ability to construct show jumps
Recipe was based around the jumps being 1x1 but I settled on 1x3
* Ripped dirt_road_turnback out to farm_tiles
Renamed the paddock_end_*s so there's no missing paddock_end_2
Readded a space I didn't realise was needed for localisation purposes
* Misc minor changes
Corrected and simplified fence naming
Changed show jumps to be furniture and readded construction though I'm still not happy with it
Add cattle feeder terrain that allows items
Reduced the size of some nests
* Adds back place_loot items from original
Also lints bc I forgot to last commit
* Sommore map progress, enables forest spawning CTD
Adds back U-turns with some overhang to prevent nonsense spawns
Redoes the fence maps to be more compact
Updates mutable's flags
Fixes the fence error
Various minor adjustments to the mutable file
* Makes forest_end directional
* Remove edge_to_forest forest_to_edge connections
Unneeded and muddying CTD problem
* Made all open_air overmaps instead use special_air
Stops the forest CTD through them infinitely placing over each other \o/
* Various join fixes
Prevents trail ends from spawning in the wrong spots
Stops trail from doubling back parallel to itself so easily which looks dumb and immediately stop gen
Reinstates edge_to_forest/forest_to_edge joins bc I forget they totally are necessary
Prevents map from spawning over mapgen trails
* Renaming and simplifying
Removes an unnecessary map and renames a load of stuff to be more uniform
Rotates paddock_v_* to make more sense using the butt against/gap before naming that hopefully makes sense to more than just me
Finishes up the uturn tiles other than dealing with the inner fence problem
A couple of tiles might have incorrectly rotated paddocks
* Added a very minimal fence inner map
* Yadda yadda more changes
Changes pond_6x6 for a new natural variant bc paddocks don't have benches
Fixed various spawned rotations left over from changing building block rotations
Removes reversed variants bc they're adding lines for little gain
Made the single side tile simpler so it can spawn multiple times without looking off
Added final cleanup stage to deal with the trailhead spawning in dumb places and to (temporarily?) deal with roads facing each other
Combined fences into one pasture OMT and added a new special_field-esqe pasture tile to fill them in
Removed all poisson defined max's outside of trail and forest bc they just vary too much
* Fixed diagonal dividers
Readded them to the lower two L maps
* Removed paddock_end_DC
Used paddock_C in it's place and a conditional gate spawn to make it work
* Removes excessive gates
Cuts remaining references to end_DC
Adds pond spawns to diag maps
* Adds horse and pond animal spawns
* Silo changes
Removed ranch_camp's silo from the mutable
Added cattlefodder/straw to silo depending on placement
Silo now uses farm_lots palette
* Minor touch ups
Normalised nest names
Removed unused roads from entrance tiles
Corrected entrance 2
Normalised diagonal paddock and divider names
Made the silo use predecessor field
Made the trailhead tile stick out though I forget what the problem was that needed me to resolve this so it might be ineffective
Changed the misc tools in alignment with the docs
Removed unused characters from palettes
* Item spawns
Adds wardrobes to house and Isherwood house
Moves most items to the palette
* Tidy up
* Adds dirt road tiles to fill in collisions
* Forgot to lint :c
* Indents inner_to_outer and extrudes outer_to_inner joins
Prevents map from placing them over other maps, not sure how to handle trail/forest joins yet. Doesn't really seem to solve anything but seems more sensible.
* Shut up bot >:c
* Just removes a nest spawn
Forgot to remove haybales from feeders
* Completely changes trail/forest spawns
Bounds the z 10 special air maps used for joins the the z 0 footprint
Produces less natural looking forest placement and results in some regular forest being replaced by special_forest_thick but it seems better than the previous solution of tons of join maps floating about at the border of the map
Replaces the final tile of trail with the intersection tile to round it off nicer
* Bot be spiting me
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Noticed a whoopsie
* Removed unused map references
And sneaks in another paddock tile to make use of more corner paddocks ssh
* Minor tile alterations
* Fixes exit tile
Seems to have stopped spawning when I moved the joins
* Adds intersect tiles to accomodate trail alterations
* Tile tweaks
* reserved_field's OM from special_field to field
field_reserved purely exists to see where the house/stable/extra tiles spawn, swapped join order so those tiles spawn immediately
* Uses the last unused map
Changes a couple of weightings to make more sense
* Lowers riding helmet DPS
* Updates vehicle parts
---------
Co-authored-by: Rasmus Eide <armokorguest@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Move loose rams from vehicle_parts.json and tidy
* Reorder and add some symbols for good defaults
* Make wheel_small copy-from the actual part
* Move vpart variants to json
* Converted JSON for vehicle parts and prototypes
* Migrate ram_military pseudo variant
* Adjust saddle variants
* General clean ups and variants UI fixes
* Extract vpart_variants translation strings
* Update documentation
* laser gunmods works with smg now
* add ray rifle in between of smg "ray gun" and "death ray", minor tweaks to laser weapon
* double the sparks rate, and make a clear message its time to research
* march lord's hoary blast is a line now, to prevent the fact AoE always ignore walls
* small shredder shotgun fixes
* tweaks in blocky pistol
* fix gunmods have 2 minutes to install
* fix bio warhead has 18h to craft, now only 1h
* new gunmod specifically for blocky pistol
* lint
* fix inventor armor disappear when battery ends
* Spatial awareness do not require hands
* Researching at night is easy (because you have a laptop)
* add `hyperboloid` for spell checker
* Apply suggestions from code review
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* bio warhead is ammo, not artifact
* fix undefined bot corpses
* rename ammo name to `bio warhead`
* small random gun tweaks
* fix dreamforged full helm fall in WEAPON category
* fix to small random gun tweaks
* Add simplified crafting recipes for matemax and elec ref sheet for inventor
* All research recipes are SECRET now
* fixes and cleanups in alchemy spells and potions
* replace few spells with direct EoC to give mutation
* Now player forget the recipe if it reached the end of research (uses #65917)
* blackout_rage_drink is not autolearned
* fix eat_dreamdross_ingot do not restore mana
* Boosts and tweaks for eater spells, as i find them a bit weak currently
* Night vision spell uses a night_vis limb score, also cleaning up and balancing the classless version of a spell
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Corrections for the Blackwood bow
* Better visibility for spawned loot
* Fix floors in subway ramp
* Ensure the cave can be properly escaped from
* Add Monolith to bow materials
I am bored with only finding jacks in the back of cars and _rarely_
large amounts of chocolate covered snacks
make a vehicle specific "toolbox" with different spawn logic and items
that I a non-vehicle owner would find useful, like screwdrivers, pliers
_and_ wrenches that spawn together cause they make a good team, duct
tape, lighting tools, cutting tools
expand the existing cat kit itemgroup to spawn be more interesting ie
spawn jerrycans along with funnels, but don't exclude a hose, include
the toolbox specified above and generally increase spawn changes
expand the misc cat itemgroup: increase spawn chances, split groups of
similar items into distributions
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* main
* Fix draw order
* fix height_3d
* astyle
* comment code
* support custom fog texture
* update py and docs
* disable for isometric
details in code comments
* fix legacy code for iso
* remove void return
* Update src/cata_tiles.cpp
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* Update src/cata_tiles.cpp
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* variants and multitile support
* use constant
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
* typo
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
* auto format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* limit draw depth
* optional legacy draw
* fix layering issues
replaces color_blocks with geometry renderer
* use t_open_air as fog sprite
draw_zlevel_overlay only used as fallback if sprite not found
* astyle
* Revert "update py and docs"
zlevel_fog is effectively replaced by t_open_air so these are no longer needed
* tidy up
* no fog in legacy mode
* remove redundant check
OVERMAP_DEPTH check already included in dont_draw_lower_floor
* tileset specific fixes
t_open_air can no longer be completely transparent, tr_ledge must now be assigned and transparent
* extend fallback fog to more tiles
Co-Authored-By: Jianxiang Wang (王健翔) <qrox@sina.com>
* remove height_3d delta
it did not really achieve the intended effect. also futureproof it for isometric.
Co-Authored-By: Jianxiang Wang (王健翔) <qrox@sina.com>
* height_3d support
early work for isometric support
* Update options.cpp
Co-Authored-By: Jianxiang Wang (王健翔) <qrox@sina.com>
* fix fog on large sprites
reorders drawing so all tiles on the same layer are drawn at once. also lays down foundation for isometric support.
* astyle
* Update options.cpp
setting FOV_3D as default leads to tests freezing indefinitely
---------
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* math_parser: implement real kwargs
* options/eoc: fix segfault in game_option()
* math_parser: hold diag functions in a map
map::find is more efficient for a container of this size
also reduces churn when adding functions
enforce use of " over the other ”, since they were far less common and
consistency is important
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Enable clang-analyzer checks
Re-enable three clang-analyzer checks that were disabled in the move to
LLVM16.
These caused four warnings: two were genuine (failing to check the
return value from getenv for being NULL); the other two seem to be
false-positives which I've suppressed.
* Remove duplicate setUsername call.
cached this on the latest episode of rycon's cataclysm let's play,
smashed something or another and it gave 100 nuts and bolts; oh I know
this old girl
bug related to spawning items with a large default `count` and
`stack_size` with `count` in itemgroups or some other method of spawning
items
use `charges` when spawning nuts&bolts as a product of smashing furniture
grep around for bash and deconstruct arrays, looking for mentions of
nuts&bolts and `count`
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Rename variable called requires
As this is a keyword in C++20, it should be used
to name a variable.
* Disable dangling reference warning
GCC 13 reports false positives of this warning.
* Disable c++20 compatibility warnings
As suggested by andrei8l
* Removed bionics remnants from office_doctor
* Removed Bionics remnants from no hope mod as well
The vanilla version remnants are removed in the same branch
* Revert "Removed Bionics remnants from no hope mod as well"
This reverts commit 55fe2789e9.
There was already a clean-pch target in the Makefile, but it only
cleaned the top-level pch files.
With this change, it also cleans the pch files within tests.
* Added crude heating element alternatives
added crude heating element alternatives to places it made sense to allow crude heating elements or heating elements
* Updated crude heating elements to extra 50% cost over normal elements
distributions and collections are hard bro
move stuff around so zombie spawns are as follows:
distribution of just regular zed clothes and a distribution of
collections containing profession flavored clothes and items
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Prevent stop of NPC disassembly while on other Z-lvl
Add is_avatar() check for crafting/disassembly actions to allow NPCs those actions while on different Z-lvl than player. Normally it was breaking due to lack of light (light calculated only for player Z-lvl)
* Update src/activity_item_handling.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/activity_item_handling.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/crafting.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/crafting.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* 2nd approach - Fix NPCs cancelling disassembly job while on other Z-lvl
Different take on the same problem - not introducing "allow NPCs crafting in the darkness" bug.
* Revert "2nd approach - Fix NPCs cancelling disassembly job while on other Z-lvl"
This reverts commit 45e675f511.
* 2nd approach - Fix NPCs cancelling disassembly job while on different Z-level
Another approach - one not introducing its own bug (NPCs being able to craft in the dark).
Same as last (reverted) commit, but files are placed where they should.
* Update src/character.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/character.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/crafting.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update do_turn.cpp
* Update src/do_turn.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Enable the clang-tidy check performance-inefficient-vector-operation.
This suggests vector reserve calls before a loops where push_back is
called repeatedly. This saves reallocations and moves, improving
performance.
All these changes were performed automatically by clang-tidy.
* Not attach the bag if too heavy
Closes#65448
* Attempt to anticipate clang-tidy
* Update src/monexamine.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Rhyzaea Johnny mentiones visiting coastal forests in Slovakia. It is a landlocked country, so if in world of Cataclysm (before Cataclysm, so he had chance to visit) nothing majored happened, that gave Sloviakia access to see, it should be straight impossible.
I suppose it might be the case of simple mixup of Slovakia and Slovenia. This second country is indeed coastal and as far as I checked it have some coastal forests.
* Move power cord from appliances to cables; rename POWER_CORD flag to AUTO_CABLE
* Add message when attaching extension cord
* Fix shift() calling actualize too early
* Remove unnecessary variable
* Use variable for has_item; spacing
* Change ordering in preparation
* Reel in disconnected cables when picking them up again
* Add CABLE pocket type
* Add device power cord
* Add PLUG_IN action to laptop
* Rewrote process_cable to allow cables to stay active outside player inventory
* Have device plugged into electrical grid gain battery charge
* Revamp finding active cables for processing, instead find via plugged in devices. Much more CPU efficient.
* Reset cable max charges read variable
* Add variables for cable charge inverval and efficiency
* Add a warning when a carried cable is stretched to its limit
* Change plug_in from iuse to an iuse_actor
* Adjust cable messages
* Add const version of cables()
* get_cable_target() use const p to be usable in more places
* Add ammo_sufficient() overload that checks connected electrical grid, use in invoke_item
* ammo_consume draw power from connected grid
* Calculate charge interval by wattage
* astyle
* Make cable length more intuitive
* Lowered plug in movecost
* Fix cable reference
* Add TODO
* Adjust cable CBM message wording
* Change all cable state names to be more descriptive
* Reuse plugged in tag
* Don't collate plugged in items
* Don't spill cable pockets
* Update lit laptop's cable wattage
* Copy EBOOK pocket for CABLE pocket
* Add CABLE_PORTS tag for vehicle parts that should accept cable connections
* Add unplug functionality
* Create cable_link struct for containing information about cable links. Replaces get_cable_target and most of the cable item variables
* Remove cables properly via container processing
* Improve feedback for plug in action, such as highlighting valid tiles
* Remove bracket I missed
* Plug in item before processing it
* Update cable connection points when their connected vehicle moves
* Truncation
* Replace remaining cable variable usage
* Only give loose cable alert once
* If a cable exists already, use it to plug in
* Rename wattage to charge_rate, adjust jo loading
* Move cable reference addition after everything
* Cable link power draw
* Include tool power draw
* Cable debug message
* Reuse variable
* Move cable_link state to top
* Item active power draw
* Add a "check links" bool to ammo_remaining to ensure the inclusion of cabled ammo only affects functions we want it to
* Moved cable_state enum to enums.h/item_factory and adjusted it
* Serialization of cable variables
* Move cable handling from vehicles to the map; made cable loading more robust
* Add vehicle item processing to actualize, so cables inside vehicles don't break when entering the reality bubble
* Add TODO
* Add debug_mode check
* Move max length to cable struct for optimization
* Missing std namespace
* Only process cables when they're fully in bounds
* Serialize max_length
* Make Minimum cable slack 0 instead of 1
* Disable spooling time for now
* Use absolute charge_rate for interval
* Move remaining cable item vars to the struct
* Moved linked battery charging to its own function; improved efficiency by checking interval early; added negative power draw functionality to allow charging vehicles with linked items
* Add warning about cables longer than the reality bubble
* Rename AUTO_CABLE to AUTO_DELETE_CABLE - better name for what it is; replace some uses of it to use CABLE_SPOOL instead
* astyle
* Unified cable language, all cable items are "cable" and connecting them "link"
* Documentation for link up action
* Add some more error messages
* Use label instead of tname to stop incongruous messages like "device (plugged in) has become disconnected!"
* More info
* JSON lint
* Tag rename in tests
* Added smartphone cable again
* Update part function
* Simplify setup link
* Add time processing to battery drain; will now only drain once a turn, and will drain extra for time spent outside reality bubble
* Add safe_reference functionality to vehicle
* Fix charge_linked_batteries to return consistent charge values in spite of staggered charge timing
* BIG rewrite, focused on simplification, optimization, and adding comments to everything.
* More documentation.
* astyle
* Made debug cable even longer, since cables can now be longer than the reality bubble. Added "debug" to name to make it easier to find for testing
* Rebase fixes
* Moved cables.json from \vehicle to \tool
* AUTO_DELETE_CABLE doc
* std::optional update
* nullptr parent_item check
* net_battery_charge_rate always add cable link power
* Use vehicle pointers for cable power transfer
* remove comment
* Update src/iuse_actor.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Remove prev_state since it's unused
* Make link data use value_ptr
* Set vehicle pointer on load
* Move link debugmsg to reset_cable
* Move turns elapsed into the parent_item section since nothing else uses it
* Only initialize link when needed
* Also exit active cable early with no_attachments
* Unified all cable use functions; split cable state in two for each side of the link; renamed some things
* Made tow cables not disconnect when unrelated parts are removed
* Process solarpacks like the UPS
* Don't allow linking already linked vehicles
* Add valid vp check to cables
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Fix test types
* Separating && statement
* Add reeling activity for long disconnected cables
* Better info for cable action description
* Rebase cleanup
* Refining documentation
* Split vehicle connections between dashboard ports and battery; jumper cables only attach to batteries, other cables only to ports
* Fix compilation errors
* Cable VP unmount now removes remote parts and drops undamaged item
* Disconnect cables when cabled vehicle gets racked
* Tone down loose cable message
* Disable single target autoselection feature for cable linking specifically
* Move parent item disconnect earlier
* Update comments
* Misc fixes
* Change link_up default targets
* Remove rendundant cable_links parameter from ammo_remaining
* Make cabled devices use reeling activity
* Make cable pockets automatically created for non-cable items with link_up actions, to avoid having to add the same exact CABLE pocket to every single device with link_up
* Add link_up action to eink tablet, mp3 player, and portable game
* Add NOLINT(cata-serialize)
* Remove unneeded includes
* NOLINT
* Separate && and ||
* Refine menu collation for cables
* Re-add the cable_links parameter for ammo_remaining
* Remove unneeded parameter
* Update vehicle part functions
* Re-add unlubricated
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
We had this enabled before but it's expanded in the update to LLVM 16,
so this is a bunch more changes.
Mostly these are removing unnecessary temporary objects created for
emplace calls.
Previously, specifying RUNTESTS=1 would result in the makefile building
both the 'check' and 'test' targets. When make was run with multiple
jobs in parallel, it could result in those jobs being run in parallel.
Unfortunately, both those targets result in building the test binary, so
if the test binary is not built, they will both attempt to build the
same files in parallel, wasting time (as shown below).
make -j2 RUNTESTS=1
\ make -C tests
| \ clang++ ... tests/submap_test.cpp
\ make -C tests check
\ clang++ ... tests/submap_test.cpp
Fix this, and ensure only one of the 'tests' or 'check' targets are
built.
* Do not include tools with internal battery
* reviewdog
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Add constructable brick oven
* Add a pseudo item for the brick oven and a terrible hack to make it work
* Somehow missed linting AGAIN
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Modifies and adds Snippets for Kaluptic Psychosis
Added more snippets and edited previous ones to sound more human.
New snippets add another layer to Psychosis aside from typical homicidal maniac. Notably adds several item voicelines. Adding casual dialogue, humor, and lines of worry or disdain
Removed a couple corny lines, and also removed limb breakage line.
* Update schizophrenia.json
* Update schizophrenia.json
* Fixed ellipsis and punctuation
* Update data/json/snippets/schizophrenia.json
* Apply suggestions from code review
* Apply suggestions from code review
* Update schizophrenia.json
---------
Co-authored-by: Fris0uman <41293484+Fris0uman@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Print variant in part name if debug_mode is on
* Windshields copy-from
* Doors copy-from
* Seats copy-from
* Remove slightly redundant values in seats
* Remove flag with no effect
* Remove redundant variant from forklift
* Aisles copy-from
* Pull loose doors to doors.json
* Convert _rear wheels to symbols
* Remove rarely/unused vpart variants
* Add missing symbols
* fix: typos on new char screen
for once I played a custom character to try out a mod and hey I found
things to fix
* fix: wizard's apprentice achievement
entering a school of magic in magiclysm gives you a default spell so you
end up triggering the "learn 3 spells" after actually just learning 2
spells from different schools
change it to 5 to account for the default spells
---------
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
All the clang-tidy tests, because they use check_clang_tidy.py, have
been unable to use any C++ STL headers. check_clang_tidy.py adds the
-nostdinc++ to prevent this.
Now that we are using our own copy of check_clang_tidy.py we can change
this decision. This will allow us to drop a bunch of duplicate code and
ensure that our mock implementations in the tests do not diverge too
much from the reality.
Do this, via a new option -allow-stdinc, where tests can opt in if they
wish. Update all the tests that previously worked around this
limitation to just use the regular includes instead.
This allows us to simplify point.h, which had previously had special
treatment to allow including it without access to the C++ headers.
The main divergence I discovered that had already happened between the
tests and main codebase was that the tests still used JsonIn in
deserialize functions, which is no longer supported in the main code.
Those tests updated accordingly.
This check looks for unused return values on a variety of C library
functions.
I resolved most of the warnings by printing out some kind of error
message in the event that the function failed.
Many of them are low-level things whose failure indicates some sort of
serious problem, so the errors are simply printed to stderr, because our
usual error reporting infrastructure might not be available.
* Auditing Xedra spells for class, energy cost, and increment settings.
Some of the spells outside of classless_spells.json didn't have a class
set, and there was a few that did have an energy cost, but no energy
source set.
In addition some of the _increment values where producing odd values,
and would never actually hit the final_ or max_ values.
* Changing the Xendra Evolved spell blur to use blurred_aura
It was using the nearly-identical obfuscating_aura item from Magiclsym
instead, but that meant the spell would only work if you had both
Magiclsym and Xedra Evolved on your world.
* adds the files in the items/ammo folder.
* adds the files in the items/armour folder.
* adds the files in the items/book folder.
* adds the files in the items/container folder.
* adds the files in the items/generic folder.
* adds the files in the items/gun folder.
* adds the files in the items/gunmod folder.
* adds the files in the items/magazine folder.
* adds asorted files in the items folder.
* adds the conversions folder in the itemgroups/Weapons_Mods_Ammo folder.
* adds files in the itemgroups/Weapons_Mods_Ammo/arsenal folder.
* adds the files in the itemgroups/Weapons_Mods_Ammo folder.
* adds files in the itemgroups folder.
* adds files in the itemgroups/SUS folder.
* adds files in the uncraft/ammo folder.
* adds files in the requirements folder.
* adds files in the recipes folder.
* adds files in the json folder.
* adds files in the mods/Generic_Guns folder.
* last tweeks.
* fixes a typo in the disc for the AI .308 10-round magazine.
* general damage tweeks.
* fixes merge errors.
* fixes merge errors.
* starts fixing bugs.
* fixes bugs.
* hooks up the ammo with the new barrel length system. still needs to add the barrel lengths to the guns themselves.
* adds the barrel lengths to the .223 guns.
* Update data/json/items/ammo/338lapua.json
Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
* Update data/json/items/ammo/450bushmaster.json
Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
* Update data/json/items/ammo/50_beowulf.json
Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
* Update data/json/items/ammo/338lapua.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Adds a 20-inch conversion .223 kit for AR-15 rifles, representing those found on M16s. also adds in all the barrel-lengths for weapons in .300, .308, .30-06, and 12.3ln.
* Commits suggested changes.
* fixes the, "last," bug. I hope. please God.
* Does a broad stroke to get gun migrations underway. Hope this doesn’t break… everything
.
* fixes pointed out bugges.
* actualy fixes the shotgun bug.
* lints, lints, lints, and lints some more.
* Fixes the solitary erroneous file.
* fixes more bugs.
* retrigger checks
* tweeks and bug fixes, makes the long version of the ar15 upper findable on guns and usable in crafts/ weapon mods.
* Adds/ fixes gun entries in generic guns.
* adds the last gun to generic guns.
* look at that, more bug fixes.
* adds more values for .223 barrel lengths and removes ranged damage entries from the conversions. they were causing errors, and the new barrel length system should make them unneeded anyhow.
* Adds name plural forms for the conversion kits which need them.
* Gives the prepped patriot a leg bag for storage.
* adds no turret flags to all the guns which need it.
* fixes a tiny bug.
* the M231 wasn't lacking an ammo entry. No. I didn't forget that. this commit doesn't add that entry.
* retrigger checks
* retrigger checks
* Update data/json/items/magazine/762.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Removes the redundant ranged damage entry.
* fixes blacklist errors and adds the post-2000 guns (i.e. all the guns) to the classic zombies blacklist.
---------
Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
Co-authored-by: Dillon Matchett <dillon.matchett@gmail.com>
* initial commit
* fixes
* fixes 2
* Update data/mods/Xedra_Evolved/spells/dreamer_spells.json
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* more changes
* spell
* last fixes
* added 57 to blocky pistol
* ...again
* sane some inventor gunmods recipes
* decrease the weight of blocky pistol to fit it in holster when its full
* not that much decrease
* small tweak of inventor gunmods
* fix typo in research recipes
* add barrel volume to repeater
* fixes in inventor batteries recipes
* make message of research end be much more visible
* make wolf's mask not kill player's stamina
* and also boost the effect, for the same reason
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Re-enable this check and suppress the false-positives it was producing.
The issue regarding these false-positives can be found at
https://github.com/llvm/llvm-project/issues/45454
Once that is fixed these suppressions can be removed.
* Let monsters disappear silently
* Void Weaver Lair, Monsters and Mechanics
* New nether terrain
* Unique webs in case tilesets want weird looks
* New reward items
* Probably better description for the artifact nagamaki
* Update src/mondeath.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Adjust the scope of the bossfight variables so they function more than once
* Fix densities
* Update data/json/monster_special_attacks/void_spider_mechanics.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* More fixes
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* more drops for z survivors
* Update zombie_survivor.json
* final fixes
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* slightly increase survivor zed base armor
* TESTS
* missing comma
* armor changes not possible so undo them
* undo changes
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
In LLVM 16 this check was a lot more effective. So, it was briefly
disabled during the migration. This fixes all its warnings again, and
re-enables it.
* added mechanic
* astyle
* fixed text and move calculation
* scent movement changes
* add last known position
* astyle
* separate function
* enforce z-level
* astyle
* remove unused
* redundant param
* refine scent code
* smell_threshold wander
* add field processor
* increase effect duration
* function refresh duration
* attack air mechanic
* hit calls function
* change declaration type
* move reapply code to on_hit
* npc support
moved stumble_invis and attack_air functions from the monster class to the creature class
* rename param
* missing checks for attacking air
* astyle
* attack air for npc
* clang-tidy
* fix npc ignore invis
* astyle
* unused decs
* clean up attack_air
* animate attack_air
* prevent fallback
Changing to c_black will prevent explosion sprites used as a fallback, assuming #65622 gets merged.
* check anim setting
* missing include
* the
* added looks_like
* fixed typo
* guess who forgot like a whole part of the zombies code
* fixed spelling of gray
* Update data/json/monsters/zed_misc.json
Co-authored-by: Venera3 <72006894+Venera3@users.noreply.github.com>
* Update data/json/monsters/zed_misc.json
Co-authored-by: Venera3 <72006894+Venera3@users.noreply.github.com>
* Revert "Update data/json/monsters/zed_misc.json"
This reverts commit f2fc8dacd7.
* applied changes suggested by venera
* condition
* whos this jason guy and why does he need lint
* remove unecessary 0 and replace scratch
* take the whole line away
---------
Co-authored-by: Venera3 <72006894+Venera3@users.noreply.github.com>
* Add clang-tidy check to ensure fs::u8path is used to construct path from utf-8 string
* Fix fs::u8path and nullptr warnings
* Print error instead of showing a popup in test mode in write_to_file
* Remove cata::fstream wrappers
* separate unused casings into own group
removes primed casings from the pool of items that can spawn with field
corpses and forest trash. adds primed casings to own item group that can
spawn at gunsmith stores and prepper garages.
* add gunsmith bulk casings item group
allows unused casings to spawn in locations where it makes sense, like a
gunsmith's shop or a prepper garage. these two locations previously had
a ammo_casings_bulk spawn; it makes sense that both locations would have
unused casings, as gunsmith's tools also spawn there.
* Update data/json/itemgroups/Weapons_Mods_Ammo/ammo.json
* Update data/json/itemgroups/Weapons_Mods_Ammo/ammo.json
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
add `FLAMMABLE_ASH` to a buch of door frames, that makes them flammable
right? I didn't test but it makes sense
all the door frames affected give planks and the like so this is OK
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
for the tactical pouch use nexus suggestion and drop it right in the
`molle_accessories` itemgroup
for the ammo pouch I had the genius idea of coping a similar item spawn
data to make this an easy fix; thanks wgrep rg
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
change the recipe of the blade trap to reflect what you get from taking
apart the active trap, not the other way around cause I think it's not
as cool if a deadly trap runs on a tiny electric motor
what you get from the trap
```json
"drops": [ "motor_small", "blade", "blade", "string_36" ]
```
new recipe
```json
"components": [ [ [ "motor_small", 1 ] ], [ [ "blade", 2 ] ], [ [ "cordage", 1, "LIST" ] ] ]
```
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
they didn't work cause the max weight was too small; just add a little
more ez
also remove an extra space
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Allow zones to see across Z levels, allow actors to use those zones
* Update src/activity_item_handling.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/activity_item_handling.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/activity_item_handling.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Walk Underwater
* Single space.
* Typo
* Update src/character.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* typo
* Move system to character flags
* Moving things to json flags
* double space
* Move things to flags
* Update character.h
* Update src/character.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/character.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update mutations.json
* Guess I didn't need the flag declared in flag.cpp
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Axe fixes
* Leave fire axe at 90cm
It breaks some containers if it's 91cm and the difference is small enough to be meaningless.
* Fix DPS
* Undo test changes
* Update firefighting.json
* DPS adjustment
* Fingers crossed
* oh please
The new harvestable plants added in innawoods conflicted with the base game's ascii making forcing the player to enter the examine menu to see what they were looking at. In a game mode so focused on harvesting, this needed updating.
I was inspired by chaosvolt's fix of this same problem
I also noticed this back in #62905, you can see in one of the
screenshots there carlos was wearing panties. hey I didn't want to judge
anyway split the outfit so there's a female and male version and add a
litte variety
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Add new menu item to npc quick chat to assign to tasks
* Apply suggestions from code review Lint and Astyle
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Changed Giant Pincer into a piece of integrated armor with Prying 1, Hammer 1, Cut 1, and Butchering -4 also decreased its encumbrance from 40 to 30. It also know has the built in moves Parry and Brutal Strike.
* Changed description for Integrated Giant pincer
* Fixed syntax thing in json
* Followup child cleanup
* Merge remote-tracking branch 'upstream/master' into think-of-the-children
* no teddy insanity
* simply a silly mistake
* group splitting
* lint the linty
* descriptions and snippets oh my
* Adds a key to toggle the language to English and back on the fly
Adds a Keybind called "Toggle language to English", default assigned to the key "," for testing purposes.
If from the game options a language different from english was selected when using this key, when pressing this button the language will toggle between the two.
* fixed formatting
* small formatting fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small formatting fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small formatting fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Improved readability
* small formatting fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* by default the keybind is now unbound
* made the change_language code into it's own function
previously changing language was tied to whatever other things set_language() was doing, so that functionality has been taken out so that other code can access it.
* added const + format fix
* added const
* improved naming of functions
The previously called "set_language()" became "set_language_from_options()" to better portray what it did.
The new function that allows to change language from code got the previously occupied name of set_language as "set_language(const std::string &lang)"
* Allows "Toggle language to en" to work in every menu
* Added .empty() checks for safety
* Changed to compare actions instead of strings
* using references instead of making copies
* Item text inside inventory tab gets correctly refreshed
* astyle format
* now the action is not registered to a specific contest, should be global
* fix comment and spacing
* Invalidate all ui_adaptors after changing language
* initialized undefined variable
* Correctly regenerate cache for item descriptions in the crafting menu when language is changed
* moved lang_version variable inside recipe_result_info_cache
* Makes inventory_item_menu refresh when the language change
I've moved the code drawing that menu inside an if() statement inside the loop so we can check after every input if the language was changed and a redraw is needed. Because of, I've had to pull up some variable outside of the if() scope so that they could continue to be visible to the switch below that needs them.
* Toggle now also work in the Compare menu
Similar commit to the previous one, moved the rendering code into an if() statement inside the loop so that it can be checked after every input. Then moved the variables that need to be visible at a higher scope outside of the loop
* central portion of the crafting menu was still cached - fixed
I had missed the central part of crafting menu being cached
* implemented suggestions
* Apply suggestions from code review
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* moved variable closed to where it's used
* added missing update of a bool
* moved variable outside of loop
* moved variable outside of loop
Had to move some variables outside of the loop, because in the case of "item_info_first" and second, if they got deleted at each iteration of the loop could cause exceptions, in the case of "scroll_pos" the position of the scrollbar need to be maintained. "page_size" as well shouldn't be reset at each iteration of the loop.
* added comment
* update cache for the right portion of the building screen
* added comment
* added comment
* fixed comment -
* empty commit
* empty commit
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
* Update NPC morale when player morale is updated
* NPCs desync from expected morale if updated based on *player* turns,
so we must not use player turns
* Making Paramilitary Zombies spawn damaged gear.
* Fixing a long line
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Initial commit
* too soon
* fixin fixin
* fixin fixin
* no message
* lintin' lintin'
* fixin stuff
* Update data/mods/Xedra_Evolved/eocs/inventor.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* holy shit `math` is awesome
* some random bug
* fixin fixin
* another fixes
* Apply suggestions from code review
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* desc fixes
* end making the ini
* Update data/mods/Xedra_Evolved/recipes/inventor/armor.json
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* noooo you can't add even more stuff in this pr its too big
* actually, biggest part of PR is different sort of obsoletions
* Update data/mods/Xedra_Evolved/items/inventor/armor.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* and another
* Lint
* Apply suggestions from code review
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/mods/Xedra_Evolved/recipes/inventor/armor.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* yolo
* Update data/mods/Xedra_Evolved/recipes/inventor/armor.json
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* no more lorem ipsum
* Update data/mods/Xedra_Evolved/items/inventor/gun.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/mods/Xedra_Evolved/recipes/inventor/armor.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fixes here and there
* add plural form
* no message
* Update data/mods/Xedra_Evolved/monsters/inventor.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/mods/Xedra_Evolved/items/inventor/gun.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* spelling
* Update data/mods/Xedra_Evolved/items/inventor/armor.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* minor tweaks
* just stop it
* tweak inventor_leg_weight
* added message if you end roll_remainder
* Apply suggestions from code review
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
The actual move cost will still be an exact value, but we'll allow
some margin in the expected number of steps to account for all
the variability that comes from trying to actually move the
avatar in the world.
* Grabs the first
C++ and documentation
* Tests, Tweaks, Docs
* Rebase fixes
* Update src/mattack_actors.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Src tweaks
Mattack proper, was_loaded
* JSON changes
Including WIP second grabs, mods, but no dinos
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Src oopsie
* Update src/mattack_actors.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/mattack_actors.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Src Oopsie 2
* Backup WIP (don't ask)
* Dinomod part 1
* Dinomod Part Two
* Final?
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Clang
* Ampersin
* We used to talk, Basic Build
You could complain about more than a single file at once, back then
* Mamaaaa
* Update monster_attack_test.cpp
* Armor
* Teleport oopsie
* Clang?
* Plop
* Clang me up, Scotty
* Un-complexify the grab test
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Seguin <davidseguin@live.ca>
This doesn't change anything about how the avatar currently swims. It
simply captures some empirical data so we have a baseline for the
current state of things.
* math_parser: constify math func params
* eoc: defer math parsing to finalization step
* eoc_math: convice clang-tidy that everything will be alright
* math_parser: add support for JSON-defined functions
* ravens and crows can now be played with
* added: generic chick so that you cannot tame most bird chicks by default
fixed: bad json
* changed: (most) remaining bird chicks to copy from generic chick instead of from crow chick
* Update data/json/monsters/bird.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* changed: generic chick is abstract
* removed: taming adult corvids
* cleaned: remaining bird chicks
* changed: bluejay (adult included), turkey, pheasant, and cockatrice chicks can be played with
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Show NPC location when selecting NPC to chat with
* Update cursor location when selecting uilist entry with mouse
* Show NPC location when selecting NPC to guard or follow
There are currently few issues with house_38, like not being able
to drag furnitures through screen doors
fixes#64185
modified house38.json and terrain-fences-gates.json
grep for tundra_mage_aoe and notice the bad bad use all lowercase for an
id and all uppercase for another, prone to mixing them up
one of the tundra mage's mutations calls a spell id in its enchantment
array, fix that; replace it with the id that's an enchantment
`vi"~`
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Use CMake version 3.20 and presets version 2
* Flatten presets into one
* Use presetName for the include file
* Start using multi-config generators
* Add a Linux release configuration and build preset
* Display PROJECT_NAME during configuration
* Fix all SDL2 related target names
* change recursive function
* change max charges function
* format and astyle
* remove unnecessary variable
* remove unneeded check
check bypasses new calculations which account weight even for rigid containers
* auto format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* use get_pocket_data and avoid div0
as per review by irwiss
* close loopholes
closed more loopholes that allow rigid containers to skip checking for parent weight capacity
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* hospitals are now overburdened by dead people
* fix density
* i am literally just copying that item, dont bother me about the density please
* minor sentence rewording
* Starts work on creating the .303 calibre, adds the basic framework for .303 bullets.
* keeps working on adding the fraimwork for .303 ammo.
* adds a .303 onhand ammo group, and adds .303 ammo types to existing item groups.
* keeps adding to the item groups.
* adds the .303 SMLE Mk III and No. 4 Mk I battle rifles. also adds their magazine and clip.
* last tweeks before pr.
* starts trying to fix errors.
* fixes bugs.
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/gun/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/gun/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* ups the weight of .303 ammo to 25 gm.
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* reworks .303 round discriptions to try and make them less wordy.
* axes the unneeded No. 4 entry in the migration file.
* retrigger checks
* retrigger checks
* Makes .303 ammo drastically more rare.
* splits the Mk III and No. 4 into two items.
* fixes errors.
* retrigger checks
* Starts work on creating the .303 calibre, adds the basic framework for .303 bullets.
* keeps working on adding the fraimwork for .303 ammo.
* adds a .303 onhand ammo group, and adds .303 ammo types to existing item groups.
* keeps adding to the item groups.
* adds the .303 SMLE Mk III and No. 4 Mk I battle rifles. also adds their magazine and clip.
* last tweeks before pr.
* starts trying to fix errors.
* fixes bugs.
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/gun/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* Update data/json/items/gun/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* ups the weight of .303 ammo to 25 gm.
* Update data/json/items/ammo/303.json
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
* reworks .303 round discriptions to try and make them less wordy.
* axes the unneeded No. 4 entry in the migration file.
* retrigger checks
* retrigger checks
* Makes .303 ammo drastically more rare.
* splits the Mk III and No. 4 into two items.
* fixes errors.
* retrigger checks
* starts tuning up the PR.
* Finishes reworking stuff.
* adds .303 to the list of ammo types that can be held in the ammo powch.
* Adds gun barrel lengths, and tweaks ammo armour piercing, range, and volume numbers to be more sensible and in line with real world data.
* fixes merge errors.
* adds barrel length values for the ammo.
* fixes bugs.
* fixes more bugs.
* Replaces the “cut” damage entry with “stab” and removes the flag. Also rebalances magazine spawns, as Enfield mags are quite rare when compared to clips.
---------
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
It turns out that a lot of loading code depends on
the availability of certain damage types.
I see two ways to resolve this:
1) Juggle the loading order of JSON types so that damage
types always load first.
2) Add deferred processing for every type with inline
damage type definitions.
I went with option 2, which is better but still
not great since new code that loads damage/resistance
definitions would need to also call finalize_damage_map
in the finalizing stage. Option 1 would cause problems
for mods, especially because the load order would matter.
None of this can be done piecemeal, it has to all be ripped
out in one go unless we want commits that don't compile
on their own.
This check looks for functions that currently have const std::string &
parameters which could have those parameters changed to use
std::string_view instead.
It tried to be relatively conservative in what it changes, so that the
majority of changed functions should continue to compile and function
correctly (although there certainly remain some corner cases where it
can run into trouble).
Here are (most of) the reasons a parameter might not be converted to
string_view:
- If we do not see the function definition.
- If the parameter is passed to another function as a const string &.
- If the parameter is passed to a function with dependent type.
- If the parameter is passed to an unresolved constructor.
- If the function is a template instantiation.
- If the function is implicitly generated by the compiler.
- If the parameter is used to initialize a string class member.
- If the parameter is bound to a string reference.
- If c_str() is called on the parameter.
- If the parameter is returned from the function as a string.
- If the function is virtual.
- If the address of the parameter is taken.
This is the last of what my automated conversion check will convert to
string_view.
We could certainly change more, but my priority right now is to get the
check itself merged.
* Mounted Police Officer
* linter
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* how did this get here I am not good at computer
* linter
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* woops
* the paddening
* the ABCs
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Fixed ordering for skills in player info menu, regardless of language choosen
Adds an ordering value to the skills in skills.json, and uses it to control the order in which the skills appear in the player info menu
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small spacing fix
* applied suggested changes
Removed garbage parameter passed to constructor, added a warning for when a skill has no "ordering" field specified, applied an "ordering" value to skills from Aftershok, Magiclysm and Xedra_Evolved
* changed "ordering" field name into "sort_rank"
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* initial commit
* no message
* improve calculations, currently uses test values
* oops
* no message
* no message
* fixing the wrong values, remove debug message
* tests: override weather in tests that need clear vision
* Andrei's fix of vision test
* vision_junction_reciprocity fix
* weather realism test fix
---------
Co-authored-by: andrei <a12l+git@runbox.com>
* Reviewed all Zombie Weakpoints & Proficiencies
# GENERAL TWEAKS
- Renamed Large Humanoids proficiency to Giant Humanoids, to clarify that it does not apply to somewhat large humanoids, like brutes, and only works on hulks and similar.
- Changed description of Natural Armors proficiency, as many enemies that used this proficiency had something more like a thick hide than any kind of shell.
- Renamed Natural Armor weakpoint set (wps_natural_armor) to wps_armored_hide, to better reflect its purpose and to avoid confusion with the unrelated Natural Armor proficiency, as well as to prevent its misapplication to monsters which have more of a carapace or plate armor thing going on. Natural Armors proficiency should be reserved for uniquely resilient armored foes, like kevlar zombies, whereas armored hide applies to anything with a particularly thick hide, even if not outrageously so.
# ZOMBIES
## ACID ZOMBIES
- Edited description of Corrosive Zombie to hint at its thick hide. Corrosive zombie now also trains Natural Armor proficiency.
- Spitter now has big head weakpoint set, based on description.
## AMALGAMATIONS (Their file is named like the zombie files so I put them here)
- All amalgamations now have intro_biology in their families. This should really be on any living creature of flesh and blood, with exceptions only for stuff like robots, physics-defying nether creatures, extra-dimensional anomalies, and the cafeteria meatloaf. I didn't add this to the cocoons because I wasn't sure if that made sense to do.
- Caustic amalgamation now trains biochemistry, like acid zombies do.
- Charged amalgamation now trains electromagnetics, like zapper zombies do.
## BURNED ZOMBIES
- Fixed a typo in the description for Zombie Kinderlings.
- Zombie Fiend now trains Ossified Exoskeletons. Thought I added that one earlier.
- Scorched Zombie now gets Armored Hide weakpoints due to its "leathery shell".
## FERROUS ZOMBIES
- Removed Armored Hides weakpoint set from rust shell zombie and plated zombie. Could possibly apply Ossified Exoskeletons to them, but I'm not sure.
## COMMAND ZOMBIES
- Slight description tweaks, typo fix.
## FUSED ZOMBIES
- Added proficiencies to Aberration and Dissoluted Devourer. Aberration doesn't give zombie bio because it isn't an actual zombie.
## LAB ZOMBIES
- Removed zombie bio from phase skulker, phase shrike, etc, as they aren't actually zombies.
- Gave phase shrike Ossified Exoskeletons proficiency.
## MISC ZOMBIES
- Added basic proficiencies to zombullfrog, frogmother, zombie nemesis, smoker
- Added basic weakpoints to smoker.
- Headless Horror trains giant humanoids proficiency, based on description.
- Removed Malicious Mane's natural armor training and body armor weakpoints, as it had no natural armor (or armor at all, for that matter).
## RADIATION ZOMBIES
- Added standard proficiencies and weakpoints to all of them.
## SOLDIER ZOMBIES
- Replaced body armor weakpoint set with armored hide.
- Removed military pilot's synthetic armor proficiency
## ANIMAL ZOMBIES
- Gave gastro bufo standard proficiencies and biochemistry.
## CLASSIC ZOMBIES
- Replaced beekeper's body armor weakpoints with armored hide weakpoints
## PUPATING ZOMBIES
- Added expected proficiencies and weakpoints to pupating hulks, as they were the only pupa zombies that didn't have a copy-from pointing to the base type, and did not include this information.
I noticed that most things that disappear on death - boomers, certain cocoons, etc. - tend not to have weakpoints or train proficiencies. Is this an oversight, or is this intentional? For now I left that as is.
## FLYING ZOMBIES
- Gave raptors standard and flying proficiencies.
- Electric raptor also teaches electromagnetics, like electric zombies.
* Removed my Personal Changelog from the Project Directory
* Fixed Fungal Wretch Typos
* Linted zed_amalgamations.json
* MANY Zombie Weakpoint Refinements (& Tests)
- Gave standard weakpoints to standard zombies - manually defined weakpoints for some of the basic zombie models (in zed_misc), like the zombie brute and zombie hulk, is a bit strange, since they have become some of the game's staple enemies. THIS WILL LIKELY EFFECT BALANCE, as these are not only important benchmark enemies, but also copy_from'd by quite a few other enemies. Basic brutes are now somewhat weaker depending on circumstances
- Updated ranged balance test to use enemies with a more uniform form factor, as the high volume of some benchmark enemies lead to counterintuitive results (higher armor enemy taking more damage because it's bigger and easier to shoot). Note that test differences in values aren't all actual "balance changes" but moreso changes to the test itself, so the comparison between old and new isn't 1:1. Test values were only updated on tests that failed for me (I ran the test with 10,000 cycles instead of the usual 200 to be sure the values I got were convergent).
- Added weakpoints and proficiency families to zombies I previously wasn't sure should receive them (mostly ones which self-destruct on death in some way, like boomers). This will make boomers significantly weaker, as they previously had no weakpoints whatsoever.
- Changed boomer stats so no boomer upgrade becomes smaller in volume or lighter in weight than the basic boomer.
- Added an upgrade path for Zombie Miners - they now have a chance to evolve into a shady zombie (most likely), a rust zombie, or just a normal tough zombie, with a ~70% chance not to evolve, on a half-life of 35.
- Rust shell zombies and rust plated zombies get a unique weakpoint category. Similar to bone armor, with the difference that weak points are quite a bit weaker, but the strong point is also a bit stronger.
- Flesh raptors finally have weakpoints, borrowing from the ones used for wasps.
- Removed NOHEAD flag from zombie military pilot, as it very much has a head and there's no reason to believe it to be structurally superfluous, and also fixed them being given erroneous armor weakpoints when they're just in fatigues.
- Lots of other minor weakpoint tweaks/fixes.
* Revert change to ranged tests that made it run 50 times as long.
* Update data/json/monsters/zed_amalgamation.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/monsters/zed_children.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update all Range Balance Values
* Reverted Weakpoint ID Change
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* initial commit
* Add length to 50 bmg ammo box, so 50 bmg can fit here
* Update data/json/items/containers/military.json
* Update military.json
* Please work please work please work
* adds some new snipits.
* adds a new snipit.
* adds more snippits.
* adds more snippits.
* adds the Mi-go voice line.
* Fixes some, honestly, quite silly buggs.
* fixes space and "..." errors.
* adds more missing spaces.
* nails the last of the missing spaces. I hope.
* Implement exodii ammo casings, add reloaded versions and crafts
* update docs to reflect the reality of the last several years worth of additions
* Implement disassembling of exodii ammunition
* Update data/json/items/ammo/exodii.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add reloaded exodii ammo migrations for generic guns, fix misplaced 3006 casing migration in GG
* fix GG recipe...
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
These are mostly automated changes. My automation tries to be
conservative, but I did have to do manual fixup of a few things.
I plan to PR the clang-tidy check that automates these changes later,
but I think more changes may be needed before that.
Some of the manual changes:
- Added svto<T> where T is an integer type, which parses integers in
string_views. This is our first use of the low-level C++17 int
conversion functions.
- Added a shortcut to lcmatch for empty queries, to allow for
refactoring overmapbuffer searches.
- Fixed an apparent bug in overmapbuffer::get_notes and get_extras,
where it was inverting the match result. As far as I can tell, these
functions aren't actually used anywhere, so I guess this bug wasn't
breaking anything.
- Allow use of string_view in JSON serialization. Previously these were
misidentified as sequences and appeared as a list of integers rather
than a string.
When something goes wrong with the script updating the language stats it
causes both values to be -1. Notice this case and ignore the states in
that situation.
This should suppress bad output in the UI until we fix the updating
script.
This is failing on CI and these errors should help debug it.
The only error I was previously suppressing was a warning about one
translation containing the \b character, which is probably not a big
deal.
Practically speaking, if the extra professions for the timeskip scenarios generally reflect how survivors adapt after a year, newer scenarios like Brave New World should have the same range of options.
* Correction of clerical errors
Correction of plural naming that differs from singular naming.
* Correction of plural naming
* Correction of clerical errors
Correction of plural naming that differs from singular naming.
replace a lot of the actions used in the release workflow with github's
CLI tool, it's free, already installed on the runners and powerful
- use it to create releases, it handles the release notes and logic
about comparing tags with one flag, it, like before it will fail if
there's a previous release with the same tag
- uploading release artifacts didn't change much
- added permissions to allow `gh` to write to a release `permissions:
write-all` don't know if there's a more granular alternative
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* eoc: obsolete mission_goal_condition_context
* eoc: untemplate all EOC code
* condition: post-untemplating cleanup
fix some errors that clang-tidy can catch now that the code isn't templated
Convert various of our string utility functions to use string_view
arguments.
We can now remove the special string_starts_with and string_ends_with
overloads taking char arrays, because compilers can optimize the
string_view version just as well.
* add widget var for remaining moves
* add the widget_var "moves_remainder" which uses avatar.moves
* change comment for widget_var "move" to reflect its value better
* update docs
* Trigger CI
the linter workflow is a hack of 2 workflows, one for data one for perms
one of them skips itself right away, but it apparently runs first this
interacted with the canceling method in a bad way
I told the concurrency or "canceling method" to cancel as you would a
normal workflow: "just run one workflow per PR at the time"
instead this should leave space for 2 workflows of the same "type" to run
per PR; as I said one skips right away, no biggie and it shouldn't
cancel the actual magical linter workflow
the fix consist of asking the concurrency to consider this workflow as 2
when it comes to canceling like so:
`linter-workflow-PR-nubmer-Pull-Request` and
`linter-workflow-PR-nubmer-Pull-Request-Target`
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Update legs_clothes.json
* Update legs_armor.json
I added a small bit to the description of the budget chainmail leggings to justify it not having 100% coverage, as budget steel and low carbon steel have the exact same melee defensive properties, only differing in ballistic protection, so I didn't want to give the budget steel leggings 100% coverage as well.
* Update helmets.json
The 'bronze helmet' is an anomaly that should probably get obsoleted. It's a one piece completely head encompassing metal helmet made of bronze. There's no example for something like this at any point throughout history, and the closest you get is a big bucket on your head. Left it in because it's outside the scope of this PR however.
* -Added support for drag-and-drop of items from one pocket to another using the mouse
-Added the ability for the user to show/hide contents of a pocket by clicking the expander character next to the pocket.
-Added mouse scrolling support to the inventory screen, mouse scrolling is intended to work in tandem with drag-drop and scrolls an entire page at a time.
* Fixed a bad merge that recreated the hotkey regression in the inventory compare selector and the multi-selector.
---------
Co-authored-by: Katie McKean <Katherine.E.McKean@snapon.com>
* added check for unbreakable flag
* extend protection to dropped items
* auto format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* remove redundancy and reorder check
* bracket
* auto format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* revert bad auto format
* Update src/item.cpp
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Seguin <davidseguin@live.ca>
* omit attacking neutral critter by move in safemode
* fix clang tidy
* remove options alteration & add key to msg
* i dont really know what iam doing, but i hth
* thanks andrei8l...?
you can make the github actions bot spam reviews of the same starting
errors over and over quite easily, just hit commit on each review
individually
just make it cancel runs if they are running for the same pr
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
resolve deprecation warnings; this should do for the simple updating
before the actual refactoring needed in the most complex ci workflows
and boy the do look they'll need a full re-write
x -> x+~1 ez fix
Co-authored-by: casswedson <casswedson@users.noreply.github.com>
* Start porting JSON code to string_view
This is an initial effort towards porting the JSON code to use
string_view. The big advantage of using string_view here is that we no
longer need separate char* and std::string overloads of functions,
reducing code bloat.
But the conversion is quite viral; it's necessary to convert all the
APIs used by the JSON code to string_view too.
* no food will escape my wrath
* the fixin
* lober
* why would you break the calories
* Revert "why would you break the calories"
This reverts commit 244fa857dd.
Update string formatter code in a few ways, taking advantage of C++17:
- Allow string_view as the format string.
- Allow string_view to be a formatted argument (via %s).
- Simplify the metaprogramming using alias templates and variable
templates.
astyle really struggles to style this code reasonably. I had to add
some extra newlines to avoid some situations where astyle got into an
infinite loop of going back and forth between options.
* Initial commit with majority of recipe rebalances for volume
* Updated crafting recipes for tiny and small motors for accuracy
* Updated two robot recipes to use motor sizes more in line with their size
* Updated test case carver recipe to reflect item json recipe changes
* Updated electric motor descriptions to clearly display motor tiers
Doubled power of smallest electric vehicle motor to match tier position
* Updated electric bicycle drag values to pass tests
* Update data/json/recipes/other/parts.json
Removing pipe from engine disassembly recipe, as its destroyed during construction
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* For the keybindings screen, changing the prompt at the top telling the user how to use the screen into buttons that can be highlighted and clicked with the mouse.
* Implemented mouse-hover and mouse-select to the keybindings screen, allowing the user to initiate the changing of key bindings using only the mouse.
* Fixed formatting issues
* Dealt with warnings thrown on Clang build.
* Added translation calls to strings to fix build warnings.
* Changed the new btn_index enum to be scoped.
* Small refactoring of enum for a better code readability
removed "_btn" repetition from kb_btn_idx enum after it was made scoped.
instead of kb_btn_idx::remove_btn we can use simpler form of kb_btn_idx::remove
* Added static_cast to convert scoped enum values to int index for a compile-time optimization
---------
Co-authored-by: Тимур Кашафутдинов <leemuar@yandex-team.ru>
* hotel update
* remove no hope mapgen variant
item and vehicle spawns are done externally now
no need to keep this
* lint
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
We have loading_ui to help show the loading progress of the game data,
but loading the save game just had a boring popup dialog that didn't
show any progress.
Change game::load to also use the loading_ui window.
One specific side-benefit of this is that when certain debug messages
appear, they might now disappear again rather than staying up until the
game is loaded, and potentially confusing users who feel they ought to
have been dismissed.
* [fix] drainage of taste mod cbm
* change order of conditional in for_fun() to be more performant
* mod_power_level(-foo) only if negative fun would be applied without CBM
* ^also only if enough energy is available
* Trigger CI
---------
Co-authored-by: Sven "qoreQyaS" Grewe <git@gucke.net>
* Instead of including “(Folded)” into the wield widget – The with_collapsed flag is now used to determine if we want to include (Folded)
* default_mods will fluctuate from +1 to +2 for built_in stocks
This is because tname() didn't count default_mods. Added default_mods.count tname()
* Update src/character.cpp
Adding Automation suggestions
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/item.cpp
Adding Automation suggestions
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/item.cpp
Adding Automation suggestions
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
It turns out that merge_po.sh is no longer used. Instead the files are
updated via a GitHub workflow. Separate out the new code into a new
script and call it from that workflow.
Also, update the TRANSLATING docs.
After #63978 nomad jumpsuits, armor and harness became unturnable on. In #64941 andrei8l gave me a solution. I cant wait for somebody to do it - so I did it by myself
* force tools to check all pockets, including non-magazine ones
* Thank you bot I did forget to astyle
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* renamed "red sauce" to "tomato sauce", because red sauce is actually
Marinara which needs spice
* moved curry_powder to be a substitude for chilly-powder to fit
requirements as of issue #34068
Co-authored-by: Sven "qoreQyaS" Grewe <git@gucke.net>
* Gambeson fixes
Warmth can't be defined per portion.
* Fix EOC iuse actor fields
EOCs can't take/don't have these fields.
* Fix palette comments
* Remove ups_charges from monster guns
Now energy drain.
A
* common is an NPC class attribute
Not an NPC attribute
* Typo fix
* use_lose_var does not have a value
* Restore unvisited member checking
It seems that gcc doesn't allow you to construct a temporary string_view
in a constexpr initializer_list, but you can if you use the string_view
literal operator. \o/
* Fixing a regression where pressing an item's hotkey does not select it as expected.
* Fixed regression related to hotkey presses in inventory multi-select screen.
* Fixed hotkey regression in item contents examiner, and the inventory compare view.
Refactor merge_po.sh to reduce code duplication.
In merge_po.sh, after updating each .po file, gather some stats on that
file.
Merge those stats into src/lang_stats.inc for use in C++ code.
* Rebalanced motors and engines (both item and vehicle parts) for realism
* Adjust misquoted 0.4 engine being 25 HP, when it should be 10 HP
* Updated displacement values to match small gas engine sizes correctly
* Updated gasoline motor descriptions to better show engine displacement in descriptions
* Rewrote engine displacement adjective to account for 2 decimal places for smaller engines.
Thanks to andrei8l for help
* Rewrote test unit check for engine displacement to account for new V2 engine volume
(1L engine now a 0.6L engine)
* Rebalanced scrap drops from destroying engines to be 30-50% of engine mass.
* Adjusted engine starter motor repair to use correct size motor (tiny)
* Updated test check for 27 L truck to fit new displacement adjectives
* Updated vehicle drag tests - adjusted from engine weights
* The github bot wanted me to do this - remove trailing zeros from test jsonUpdate data/mods/TEST_DATA/vehicle_drag_test.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* The github bot wanted me to do this - remove trailing zeros from test jsonUpdate data/mods/TEST_DATA/vehicle_drag_test.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Adjusted test cases for vehicle drag and efficiency re: engine mass changes
* Added descriptions to gas engine vehicle parts to better display
engine tier
* corrected fuel usage for 200cc
* empty commit (changed one word) to re-run tests
* empty commit
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fixes#63903.
Previously, every time a value was compared to the value of some
statistic in a value constraint, that statistic was recomputed from
scratch.
This led to O(n^2) runtime, and potentially very slow load times for
games (in particular, the achievement for revisiting your starting OMT
was problematic).
Instead, use the existing stats tracker infrastructure to cache the
statistic value and automatically update the cached value whenever it
changes, but not otherwise.
Now the example savegame from #63903 loads in a matter of seconds,
rather than many minutes.
* Added mouse hover support to the character info screen ('@'). WIP
* Finished adding mouse support to character sheet, focus follows mouse and clicking is supported, the user can now click the "buttons" on the top right to view key bindings, customize their character, and view morale.
* Dealt with warnings, added one small code cleanup.
* Changed the windows parameter to a reference to appease the build gods
* first pass - numbers
* second round
* recipes themselves
* small stuff
* disassemblies
* man it'd be so cool if this fixed it
* orang juic
* lint this devil
* organize the thing
* description cleanup
Co-Authored-By: FoolsGold45 <46657256+FoolsGold45@users.noreply.github.com>
---------
Co-authored-by: FoolsGold45 <46657256+FoolsGold45@users.noreply.github.com>
The constant 15_degrees (and 6, which is 90/15) appears various places
in the code without explanation. Replacing it with a name should clarify
the intent and meaning of the places it is used.
* Way of the Adjective Hand x3
Epic Jade Empire reference
* Existing perk fixes
* Perks for a later PR
Gentle Death & Quickdraw Perks
* Move additional perks out
This reverts commit 5faa1ca169.
Remove absent codeowners and codeowners for mods that exist anymore.
They didn't have write perms, so it didn't work anyway.
Also, fix bombastic perks path case, so the author is alerted.
* Popeye the Sailor man
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Moved everything to its own file, and added to the menu
Co-Authored-By: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Syntax Fixes and fail effect
Co-Authored-By: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bombasticSlacks <dillon.matchett@gmail.com>
These aren't loaded by these objects. The container item for the pills
is already a bottle, and I'm not sure what density was aiming to
accomplish exactly.
Constructions cannot use descriptions, and this is just a duplicate of
the description of the terrain, which is the description for the
construction anyways.
* When a container spills as part of an unload operation, there's a chance, when the game is attempting to add the item to the player's inventory, that the item is placed back into the container it spilled from, causing an infinite loop.
* Update src/item_contents.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/item_contents.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/item_pocket.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/item_pocket.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* copper & bronze
* lead
* silver
* more
* liiiiiiiiinting
* hopefully test fixes?
* don't be an idiot next time
* setting the foundations
* gold
* platinum
* final touchups
* price fixes
* not to bee
* beegone
* beeneficial pruning
* end of the beegining
* beeleanup
* not the bees!
* beeutiful simplicity
* desting
* more destinging
* json destunging
* Adds a new itemgroup to spawn the paint in cans correctly
* Removed a line break
* Corrected indentation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Removed some more line breaks
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update scenarios.json
Fixing grammar and awkward sentence structure; added "Challenge" to the title of any scenario with the CHALLENGE flag.
* Update hobbies.json
* Proofreading descriptions & tweak some names
* Standardize Military Professions
Give military professions that were imported from Fuji's mod more standardized proficiencies, skills, and items, with the Military Recruit's kit used as a baseline. The Undercover Operative is a notable exception - their kit is purposely non-standard and mostly composed of civilian clothing, but they still have the standard military training. Also gave the Military Breacher a breaching shotgun with carry vest, and some breaching slugs to play with.
* Update professions.json
breacher item fixes
* More tweaks after testing
Removed extraneous chest rigs from sniper and hacker, used item groups to workaround issue where grenadier and breacher don't spawn with the correct amount of spare ammo. reverted addition of breaching shotgun and related items on breacher
* phones
the non-elderly military vet gets a smartphone instead of a cell phone as most professions do. various other professions get smartphones or cell phones if they have storage space and if it isn't inappropriate for their profession
* minor proofreads
* Update scenarios.json
* Update professions.json
fixed an "embarrassing" typo
* confiscate cheerleader's phone
* Update data/json/professions.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Salisfy is a scrape'n'bake recipe. There should be a batch time
factor. I've used `[ 80, 4 ]` as most of the prep is in the baking.
- Salsify was listed as -1 health because it contained inulin. That will
give most people gas, but is Generally Recognised As Safe. Lots of
modern foods have inulin added to boost their fibre content.
- Dahlia roots, as far as I'm aware, are also a scrape'n'bake, so I've
added a batch factor there as well.
`ESC`Main Menu -> `b`Debug Menu -> `i`Info -> `r`Generate game report
placeholder:|
- OS: [e.g. iOS 8 or Windows 10 or Ubuntu 18.04]
- Game Version: [e.g. 0.C-29938-g90f5268437]
- Game Version: [e.g. d6ec466 (64-bit) ]
- 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]
@@ -33,7 +33,7 @@ If there is no related issue, explain here what issue, feature, or other concern
#### Testing
<!-- 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. -->
<!-- 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. See TESTING_YOUR_CHANGES.md -->
#### Additional context
@@ -43,4 +43,4 @@ If there is no related issue, explain here what issue, feature, or other concern
<!--README: Cataclysm: Dark Days Ahead is released under the Creative Commons Attribution ShareAlike 3.0 license.
The code and content of the game is free to use, modify, and redistribute for any purpose whatsoever.
By contributing to the project you agree to the term of the license and that any contribution you make will also be covered by the same license.
See http://creativecommons.org/licenses/by-sa/3.0/ for details. -->
See http://creativecommons.org/licenses/by-sa/3.0/ for details. -->
# We might need binaries installed via pip, so ensure that our personal bin dir is on the PATH
exportPATH=$HOME/.local/bin:$PATH
# export so run_test can read it when executed by parallel
export cata_test_opts
function run_test
{
@@ -19,7 +23,7 @@ function run_test
prefix=$2
shift2
$WINE"$test_bin"--min-duration 0.2 --use-colour yes --rng-seed time$EXTRA_TEST_OPTS"$@" 2>&1| sed -E 's/^(::(warning|error|debug)[^:]*::)?/\1'"$prefix"'/'||test_exit_code="${PIPESTATUS[0]}"sed_exit_code="${PIPESTATUS[1]}"
$WINE"$test_bin"${cata_test_opts}"$@" 2>&1| sed -E 's/^(::(warning|error|debug)[^:]*::)?/\1'"$prefix"'/'||test_exit_code="${PIPESTATUS[0]}"sed_exit_code="${PIPESTATUS[1]}"
"When you take damage, it will change the status of the affected body part, as shown in the sidebar. Its overall wellness is represented by a series of bars that will deplete and change color the more damage you take. If the accumulated damage is more than the body part can suffer, it will break. If that happens to a critical body part (i.e., your torso or head), you will die. For other body parts, it means broken bones, significant penalties, and a long process of healing - after placing the affected limb in a splint.",
"Normal damage heals with time. You heal more during a good sleep, but wounds also heal a bit while you are awake.",
"You need to treat your wounds properly, because untreated wounds heal very slowly. First, you need to bandage your wounds, and, if possible, disinfect them as well. This will set conditions for proper healing and will result in faster recovery. You can make makeshift bandages if you have the skill, and there are a few options to replenish your stock of disinfectant. Remember to always treat your wounds as much as you can, as this is the proper way to get them healed.",
"You can get bitten if a zombie grabs you. Bite wounds can be deep; this means that it is infected. If that happens, the status bar of affected body part will change color to blue. This means you need to disinfect it as soon as possible to clean the wound and prevent serious infection. If there is no chance of getting disinfectant in the immediate aftermath, you may try the more drastic method of cauterizing the wound, but it often worsens its state instead of helping. If you leave it be, the affected body part will develop a serious infection, and its status bar color will change to green. At this stage, it is too late to disinfect the wound, and you need antibiotics to fight it. Your body will fight the infection by itself, and regular antibiotic intake may keep you alive long enough for that to happen. You have to wait it out, in the hope that you will not die in the process.",
"You can get bitten if a zombie grabs you. Bite wounds can be deep; this means that it is infected. If that happens, the status bar of affected body part will change color to blue. This means you need to disinfect it as soon as possible to clean the wound. If you leave it be, the affected body part will develop a serious infection, and its status bar color will change to green. At this stage, it is too late to disinfect the wound, and you need antibiotics to fight it. Your body will fight the infection by itself, and regular antibiotic intake may keep you alive long enough for that to happen. You have to wait it out, in the hope that you will not die in the process.",
"If you are bleeding, the status bar of the wounded part turns red. The affected body part takes damage as long as it bleeding. The simplest way to stop bleeding is to use a bandage, and there are additional medical items dedicated to stopping hemorrhage.",
"You may be affected by one of many additional medical conditions and maladies throughout the game. In that case, you may want to seek proper medication, if one exists for the affliction you suffer. There are many medications beside the ones already mentioned, some of which have some extra effects that you might utilize even in a way not originally intended. With some skill you can also try natural medicine, as many herbs have more or less beneficial effects, and if you are a seasoned chemist you can synthesize your own drugs."
]
@@ -222,9 +222,9 @@
"messages":[
"You control vehicles using the numpad, or vikeys. Note, however, that you control the vehicle's controls, rather than controlling the vehicle directly.",
"<HELP_DRAW_DIRECTIONS>",
"In order to assume control of a vehicle, get to a location with working \"vehicle controls\" and a \"seat,\" then press <press_control_vehicle>. Once you are in control, <press_UP> accelerates, <press_DOWN> slows or reverses, & <press_LEFT> & <press_RIGHT> turn left or right. Diagonals adjust course and speed. You default to cruise control, so the gas/brake adjust the speed which the vehicle will attempt to maintain.",
"In order to assume control of a vehicle, get to a location with working \"vehicle controls\" and a \"seat,\" then press <press_control_vehicle>. Once you are in control, <press_UP> accelerates, <press_DOWN> slows or reverses, & <press_LEFT> & <press_RIGHT> turn left or right. Diagonals adjust course and speed. The gas/brake adjust the speed which the vehicle will attempt to maintain.",
"10-30 MPH, or 16-48 KPH, is a good speed for beginning drivers, who tend to fumble the controls. As your Driving skill improves, you will fumble less and less. To simply maintain course and speed, hit <press_pause>.",
"It's a good idea to pull the handbrake - \"s\" - when parking, just to be safe. If you want to get out, hit the lights, toggle cruise control, turn the engine on or off, or otherwise use the vehicle controls, press <press_control_vehicle> to bring up the \"Vehicle controls\" menu, which has options for things you'd do from the driver's seat.",
"It's a good idea to pull the handbrake - \"s\" - when parking, just to be safe. If you want to get out, hit the lights, turn the engine on or off, or otherwise use the vehicle controls, press <press_control_vehicle> to bring up the \"Vehicle controls\" menu, which has options for things you'd do from the driver's seat.",
"Examining (<press_examine>) a vehicle brings up the vehicle interaction window. The left pane shows a top-down view of your vehicle and each part of it. The middle pane shows a summary of the vehicle's engines, batteries, storage tanks, weapons, and seating. The right panel is context-sensitive, but normally has descriptions of the vehicle parts in the tile highlighted in the vehicle view on the left.",
"Across the bottom is a summary of the most important parameters of your vehicle. \"Safe speed\" is how fast you can drive without damaging the engine, and \"Top speed\" is how fast you can drive at the engine's maximum output. \"Acceleration\" is how fast your vehicle can increase speed each turn. \"Cargo volume\" is how much cargo you can store and how much stuff you have in your vehicle, \"Mass\" is how much the vehicle weighs, and the \"Status\" and \"Wheels\" readouts give a summary of the vehicle condition and wheel condition. There are also fuel indicators on the lower right that give an estimate of how quickly your fuel will run out.",
"Air drag, water drag, rolling drag, and static drag are all values that influence your vehicle's safe and maximum speed. The interaction of drag and engine power is complicated, but generally speaking, more powerful engines will make your vehicle go faster but also consume fuel faster.",
@@ -239,7 +239,7 @@
"Each boat hull you add to your vehicle increases the height of the vehicle's watertight hull. If the height of the watertight hull is less than the vehicle's draft, then water will flow into your vehicle, and it will sink and be destroyed if it goes into deep water. If your vehicle's draft is less than the height of the watertight hull, your vehicle will not take on water and will not sink in deep water.",
"Draft is determined by the length and width of your vehicle, the mass of your vehicle, and the percentage of the vehicle's underbody covered in boat hulls. In general, a vehicle should be able to float if its mass in tons is less than a quarter of the product of its length and width, provided that the watertight hull is high enough. A boat that is 5 tiles wide and 9 tiles long has a good chance of floating if its entire underbody is covered in boat boards and it weighs less than 10 tons.",
"Increased draft increases water drag, and water drag reduces a vehicle's speed in water. If you want your boat to go fast, make it as light as possible.",
"Amphibious vehicles have both wheels and boat hulls. As long as your amphibious vehicle has enough wheels on land and enough boat hulls to not sink in deep water, you can freely transition from land to water. However, most amphibious vehicles are much slower in water than they are on land, so be careful when entering water to not leave your cruise control speed above your vehicle's safe water speed or you can burn out your engine!"
"Amphibious vehicles have both wheels and boat hulls. As long as your amphibious vehicle has enough wheels on land and enough boat hulls to not sink in deep water, you can freely transition from land to water. However, most amphibious vehicles are much slower in water than they are on land, so be careful when entering water to not leave your speed above your vehicle's safe water speed or you can burn out your engine!"
"description":"An ornately decorated robe with an unfamiliar royal symbol on it. The humanoid figure on the seal has two pairs of eyes. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_cloak",
"type":"ARMOR",
"copy-from":"cloak",
"name":{"str":"ancient burial shroud"},
"description":"A cloak of thin, faded cloth. The faint silhouette of a long-dead humanoid is barely visible on it. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_coat",
"type":"ARMOR",
"copy-from":"coat_fur",
"name":{"str":"ornate fur coat"},
"description":"A heavy, finely crafted coat made of the fur of an unidentifiable creature. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_mask",
"type":"ARMOR",
"category":"armor",
"name":{"str":"ancient stone mask"},
"description":"A sinister mask made of a smooth green stone. It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"description":"A helmet with an imposing face plate. Though the corrosion has completely defaced the symbols written on the sides, it seems sturdy. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_gloves",
"type":"ARMOR",
"copy-from":"gloves_leather",
"name":{"str":"pair of ornate leather gloves","str_pl":"pairs of ornate leather gloves"},
"description":"A set of worn leather gloves embossed with gold. The unidentifiable leather it is made from is oddly soft. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_boots",
"type":"ARMOR",
"copy-from":"boots",
"name":{"str":"pair of ancient leather boots","str_pl":"pairs of ancient leather boots"},
"description":"A pair of ancient leather boots. Though the flaps of leather are crudely sewn together, the red hue it is dyed with is striking. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_ring",
"type":"ARMOR",
"copy-from":"gold_ring",
"name":{"str":"amber ring"},
"description":"A band of gold with a smooth piece of amber set into it. A strange worm is encased in the amber, making a perfect spiral with its sealed body. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_staff",
"type":"TOOL",
"copy-from":"i_staff",
"name":{"str":"ancient staff"},
"description":"A well-balanced stick of treated wood with metal caps. A red stone is embedded in the handle. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_sword",
"type":"TOOL",
"copy-from":"longsword",
"name":{"str":"ancient sword"},
"description":"A sword made out of a striking black metal. It is the only one of its kind.\nIt may have unknown powers; try activating them."
"You strum a string and the note hangs in the air far longer than you would expect.",
"You improvise a tune on the harp. The sound is beautiful, even if you can't remember what you just played.",
"You pluck a chord on the harp. It doesn't sound anything at all like the sounds of the individual strings."
],
"npc_descriptions":["plucks a few notes on the harp, though no sound seems to come."]
},
"symbol":"7",
"description":"A harp made of black wood. Faint hypnotic notes ring in the air each time you touch it. It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"//":"Tool qualities equivalent to steak knife, combat equiv. to copper knife + 1 w/ RAPID and BLOCK1, size/weight off combat knife +1",
"description":"A ritual knife used by some ancient civilization. Unreadable runes are carved into the handle. It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"description":"A sturdy wooden pole with a sharp metal spike on the end. The handle has the symbol of a blue sun on it. It is the only one of its kind.\nIt may have unknown powers; try activating them."
},
{
"id":"art_club",
"type":"TOOL",
"copy-from":"club_wooden",
"name":{"str":"ancient club"},
"description":"A misshapen rod of gnarled, knotted wood. The knots in the wood exhibit a strange fractal pattern. It is the only one of its kind.\nIt may have unknown powers; try activating them."
"description":"A thin forcefield surrounds your body, continually draining power. Everything loses velocity when penetrating this field, which results in reduced amount of dealt damage at the cost of your bionic energy. Bullets and stabbing attacks will lose more velocity than cutting attacks and those in turn more than bashing attacks.",
"description":"Extremely thin lenses provide user with augmented reality overlay allowing the user to zoom, and it displays handy information about local topology.",
"//":"Basically implanted contact lenses with AR capabilities",
"//":"cant_remove_reason removed for now as these are presently functionally obsolete and characters should be able to remove them to get with the times.",
"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]],
"protec":[
["head",{"bash":3,"cut":3,"bullet":3,"stab":3}],
["mouth",{"bash":3,"cut":3,"bullet":3,"stab":3}]
],
"encumbrance":[["head",1]],
"//":"cant_remove_reason removed for now as these are presently functionally obsolete and characters should be able to remove them to get with the times.",
"//":"cant_remove_reason removed for now as these are presently functionally obsolete and characters should be able to remove them to get with the times.",
"//":"cant_remove_reason removed for now as these are presently functionally obsolete and characters should be able to remove them to get with the times.",
@@ -383,7 +420,6 @@
"mutation_conflicts":[
"THICKSKIN",
"THINSKIN",
"SKIN_ROUGH",
"M_SKIN",
"M_SKIN2",
"M_SKIN3",
@@ -452,7 +488,15 @@
"SLIME_SPRAY",
"INSECT_RESERVOIR",
"MUCUS_SECRETION",
"MUCUS_SECRETION2"
"MUCUS_SECRETION2",
"SKIN_SMOOTH",
"SKIN_RASHY",
"CHITIN_MOLTED",
"CHITIN2_MOLTED",
"CHITIN3_MOLTED",
"CRUSTACEAN_CARAPACE_MOLTED",
"SPARSE_SCALES",
"SKIN_PEELING"
]
},
{
@@ -493,7 +537,7 @@
"id":"bio_blindfold",
"type":"bionic",
"name":{"str":"Optical Dampers"},
"description":"The lenses surgically installed over your eyes can be tinted to block out incoming light.",
"description":"A pair of lenses surgically installed over your eyes that can be tinted to block out incoming light.",
"included":true,
"flags":["BIONIC_TOGGLED"],
"active_flags":["BLIND"]
@@ -529,7 +573,7 @@
"id":"bio_carbon",
"type":"bionic",
"name":{"str":"Subdermal Carbon Filament"},
"description":"Lying just beneath your skin is a thin armor made of carbon nanotubes. This has little impact on blunt trauma but will protect you against deep cuts.",
"description":"Lying just beneath your skin is a thin armor made of carbon nanotubes. This has no impact on blunt trauma but will protect you against deep cuts.",
"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":"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_weapon":"bio_emp_gun",
"flags":["BIONIC_GUN","USES_BIONIC_POWER"]
"flags":["BIONIC_GUN"]
},
{
"id":"bio_ethanol",
@@ -959,11 +977,26 @@
"name":{"str":"Cranial Flashlight"},
"description":"Surgically mounted between your eyes is a small but powerful LED flashlight.",
"description":"Your brain has been enhanced with bionic coprocessors, giving you a +2 bonus to intelligence.",
"cant_remove_reason":"The bionic is now critical to the continued functionality of the user's brain.",
"occupied_bodyparts":[["head",6]],
"stat_bonus":[["INT",2]],
"flags":["BIONIC_NPC_USABLE"]
@@ -1101,9 +1135,8 @@
"name":{"str":"Finger-Mounted Laser"},
"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":"Your memory has been enhanced with small quantum storage drives. While active, you learn - both through reading and practice - more quickly. Additionally, you forget skills you've learned slower.",
"cant_remove_reason":"Removing this CBM would cause severe amnesia and neurological issues.",
"active_flags":["CBQ_LEARN_BONUS"],
"act_cost":"2 J",
"react_cost":"2 J",
@@ -1299,26 +1333,6 @@
"encumbrance":[["eyes",10]],
"flags":["BIONIC_FAULTY"]
},
{
"id":"bio_power_armor_interface",
"type":"bionic",
"name":{"str":"Power Armor Interface"},
"description":"Interfaces your power system with the internal charging port on suits of power armor, allowing them to draw from your bionic power banks.",
"description":"Interfaces your power system with the internal charging port on suits of power armor, allowing them to draw from your bionic power banks. Twice as efficient as the Mk. I model.",
"description":"Titanium bracing has been installed onto your elbows, knees, and spine, making them far better at handling strain. Your carrying capacity is increased by 20 kilograms, or about 44 pounds.",
"description":"Titanium bracing has been installed onto your elbows, knees, and spine, making them far better at handling strain. Your carrying capacity is increased by 20 kilograms, or about 44 pounds, and you receive slightly less bashing damage to your arms, legs and torso.",
"//1":"maybe some applied science? this seems to be some semi-advanced hardware",
"required_skills":[["fabrication",0]],
"//2":"I set lower activity and longer time for putting a lot of light and/or small items together. When possible, I'd like it to take more time to disassemble as well.",
"description":"A hefty leather bag in an oblong shape, suspended from a ceiling mount with a steel chain. It can be used for exercise and combat training, with the notable advantage that it doesn't fight back.",
"pre_note":"Mark a spot to stack cut grain for drying outdoors. Once placed, put unrotten undried grain stalks on the stooking spot and examine it to get started.",
"u_message":"They are all dead. The group you were surviving with has been annihilated. Their bodies are still nearby. You are the last one left alive and their screams will haunt you.",
"u_message":"Your exoskeleton grows steadily more rigid until you can no longer move. You strain against it for a few minutes, and it peels and cracks away in chunks like a plaster mold, revealing a soft and tender new layer beneath.",
"u_message":"Your exoskeleton locks up around you like a straitjacket, completely immobilizing you. As you try to move, you begin to feel it painlessly rip, opening a hole through which you can slowly emerge, raw, soft, and vulnerable.",
"type":"bad"
},
{"u_lose_trait":"CHITIN3"},
{"u_lose_trait":"CHITIN2"},
{"u_lose_trait":"CHITIN"},
{"u_lose_effect":"molting_imminent"},
{"u_spawn_item":"chitin_piece","count":4},
{"u_add_trait":"CHITIN_MOLTED"},
{"u_add_trait":"CHITIN2_MOLTED"},
{"u_add_trait":"CHITIN3_MOLTED"}
]
},
{
"type":"effect_on_condition",
"id":"chitin3_molt_timer4",
"recurrence":["8 hours","12 hours"],
"condition":{
"and":[
{"u_has_trait":"CHITIN2_MOLTED"},
{"u_has_trait":"CHITIN3_MOLTED"},
{"not":{"u_has_effect":"molting"}},
{"not":{"u_has_effect":"molting_imminent"}}
]
},
"effect":[
{"u_message":"Your exoskeleton has finished hardening.","type":"good"},
"u_message":"Your exoskeleton locks up around you like a straitjacket, completely immobilizing you. As you try to move, you begin to feel it painlessly rip, opening a hole through which you can slowly emerge, raw, soft, and vulnerable.",
"type":"bad"
},
{"u_lose_trait":"CRUSTACEAN_CARAPACE"},
{"u_lose_trait":"CHITIN2"},
{"u_lose_trait":"CHITIN"},
{"u_lose_effect":"molting_imminent"},
{"u_spawn_item":"chitin_piece","count":5},
{"u_add_trait":"CHITIN_MOLTED"},
{"u_add_trait":"CHITIN2_MOLTED"},
{"u_add_trait":"CRUSTACEAN_CARAPACE_MOLTED"}
]
},
{
"type":"effect_on_condition",
"id":"chitin_carapace_molt_timer4",
"recurrence":["8 hours","12 hours"],
"condition":{
"and":[
{"u_has_trait":"CHITIN2_MOLTED"},
{"u_has_trait":"CRUSTACEAN_CARAPACE_MOLTED"},
{"not":{"u_has_effect":"molting"}},
{"not":{"u_has_effect":"molting_imminent"}}
]
},
"effect":[
{"u_message":"Your exoskeleton has finished hardening.","type":"good"},
"desc":["You have been grabbed by an attack.\nYou are being held in place, and dodging and blocking are very difficult."],
"desc":[
"You have been grabbed and held in place by an attack. You're not able to move until breaking the grab, and depending on the strength of your opponent using this limb is difficult to impossible.\nWait in place or attempt to move without attacking to try and remove this effect."
],
"rating":"bad",
"max_duration":"2 s",
"max_intensity":15,
"base_mods":{"speed_mod":[-15]},
"scaling_mods":{"speed_mod":[-5]},
"//":"Removal handled in code, so no maxduration needed, intensity set by the grab_strength, all effects are local-only",
"max_intensity":100,
"show_in_info":true,
"show_intensity":true,
"//":"Monster attacks only grab the torso to keep the intensity check consistent, but assume limbs getting grabbed as well",
"//mods":"No swimmin' or manipulatin' with a held limb, other scores start severly debilitated and reach useless at about 50 grab strength",
"description":"Firing blackpowder loads from a gun fouls it, which reduces reliability and, if left uncleaned, leads to rust. It fouls the gun much faster than the use of modern smokeless powder cartridges. Fouling is only a significant impact on reliability at high levels, but black powder fouling accumulates quickly.",
"description":"This gun currently has an empty casing chambered. It will have to be removed before firing.",
"item_prefix":"jammed",
"flags":["JAMMED_GUN"]
},
{
"id":"fault_gun_unlubricated",
"type":"fault",
"name":{"str":"Unlubricated"},
"description":"Either this gun is brand new and came without lubrication or it was recently cleaned with a solvent without oiling afterwards. Either way, it's not lubricated and will not cycle properly, and can even be damaged.",
"item_prefix":"unlubricated",
"flags":["UNLUBRICATED","BAD_CYCLING"]
},
{
"id":"fault_gun_dirt",
"type":"fault",
"name":{"str":"Fouling"},
"description":"Fouling is caused by firing gunpowder loads repeatedly, which reduces reliability and can eventually cause damage to the gun. Fouling accumulates slowly (unless blackpowder is used) due to the design of modern smokeless powder found in the vast majority of retail cartridges and it is not a significant problem until high levels of fouling are reached due to firing thousands of rounds without cleaning your firearm."
"description":"A standard gas-powered oven, commonly used for heating and cooking food. This one has an attached microwave. With the state of nearby gas lines unknown, it's best not to put any fire near it. You could disassemble the shelving holding them together and pull the microwave out.",
"description":"A small horn cleat with two “horns” extending parallel to the deck or the axis of the spar, and resembling a small anvil. They are used to secure mooring lines, ropes, and similar.",
"description":"A small horn cleat with two \"horns\" extending parallel to the deck or the axis of the spar, and resembling a small anvil. They are used to secure mooring lines, ropes, and similar.",
"symbol":"B",
"color":"light_gray",
"looks_like":"f_bitts",
@@ -206,7 +206,7 @@
{
"type":"furniture",
"id":"f_floor_lamp",
"name":"floor lamp",
"name":"standing lamp",
"symbol":"T",
"looks_like":"f_rack_coat",
"description":"A light mounted on the top of a metal pole, this would be plugged into a wall socket to illuminate a room.",
"description":"Sheaves of cut grain have been stood upright in a self-supporting A-frame to dry, keeping the seeds off the ground and out of reach of vermin.",
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.