Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge pull request CleverRaven#37638 from Night-Pryanik/st-john-farm-… #71

Merged
merged 47 commits into from
Feb 2, 2020

Conversation

fengjixuchui
Copy link
Owner

Summary

Purpose of change

Describe the solution

Describe alternatives you've considered

Testing

Additional context

wapcaplet and others added 30 commits January 29, 2020 10:46
To increase realism and game consistency regarding partial deafness

Partially fixes #36013

Disallows an attempt at safecracking while player has
`effect_earphones`. Due to a loophole caused by mp3 player activation
being instantaneous, it is still possible to begin safecracking
immediately after putting on the mp3 player (but not after 1 turn has
passed with the mp3 active).
With the logic to prevent safecracking with `effect_earphones`, there
was an edge case immediately after activating them mp3 player, still
allowing a safecrack attempt to be made.

Fixes #36013

Turning an mp3 player on or off now takes 1 second, where before it took
0 time. This allows `effect_earphones` to become active before the next
action, preventing a safecracking attempt.

Unfortunately, it leaves a second edge case when the mp3 player turns
off (which also takes only 1 second); there, for some reason I can't
determine, the `effect_earphones` status remains alive for a further
second.

As a side note, this 1-turn delay on activation, and 2-turn delay on
deactivation has been clearly visible in-game in the experimental branch
for quite some time, using the DeadPeople tileset. You may have noticed
after turning on an mp3 player that it takes 1 further second for the
icon to appear above your avatar, and that after turning it off, 2
seconds must elapse before the icon disappears. Now, because of the
1-second (de-)activation time, turning it on gives the icon right away,
but turning it off still takes 1 more second.
By making the mp3 player take 2 seconds to turn off, the avatar status
indicator is correctly updated, and earphone effect is correctly
refreshed, allowing a safecrack attempt immediately after turning off
the mp3 player.

Increasing the mp3 turn-on time to 2 seconds for symmetry.
Prevent the truncation of proportional damage values by using floats for
the display functions.
The numbers here are small enough that the precision of floats should
never be a problem.
Some objects in the JSON files are defined multiple times (that is: there are several object with the same "type" and "id" member).

Most of those duplicates are identical.

Some are slightly different.

The game will usually overwrite the previously loaded data with new the date from the new definition, so when the duplicates are different, this uses the value from the later definition.

----

How do we even get those duplicates?

Could it be because the location of those definitions is not easily predictable ("grave" is defined in "terrain-manufactured.json" and in "terrain-floors_outdoor.json")?

But some of those duplciate appear *right* next to each other (e.g. in "overmap_terrain_recreational.json").
…ion defined.

There is no item of that id anymore. Existing items will be converted to "can_bomb" as defined in the migration entry.
Routine i18n updates on 31 Jan 2020
Moved diving code before the check for terrain's "climbality"
Deduplicate some JSON data:
Remove vending item groups from nonsensical places
DOC: renamed an instrument description field from "descriptions" to "player_descriptions"
Prevent safecracking attempt while wearing earbuds
Set sap temperature when producing it
Qrox and others added 17 commits February 1, 2020 21:05
* Renamed monstergroups_egg.json to eggs.json

* Sorted out the rest of monstergoups.json
* Ranged.json sorting

* Sorted out archery.json and crossbows.json
* Monsters.json sorting

* Update fish.json

* Moved searchlight to turrets.json
Fix faction camp blueprint recipe autocalculation consistency
The "goal" section was all running together in github's markdown viewer;
changing this to table formatting makes it consistent with other tables
in this doc.

Also replaced tabs with spaces in JSON example and trimmed trailing
whitespace.
* item_groups.json sort 7

created 1 new .json (electronics); renamed monster_drops to monster_drops_lairs to reflect the file now containing lair item lists; moved various other item lists.
Replaced unused overmap terrains with "null" om_terrain for TWD dairy farm
@fengjixuchui fengjixuchui merged commit 0965c11 into fengjixuchui:master Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.