How much gold and how much time does fitted mithril or adamantine armor cost in D&D 5e?

I’m looking for the most widely accepted rules for buying mithril and adamantine armor, including chain, splint, half and full plate. How much gold and how much time for a merchant to craft does each piece of armor listed (8 total) cost, baseline? Non official rules are allowed as long as they are widely used. I’ve scoured many sources like the DMG, in addition to the other official 5e sources.

Changing shipping cost in Woocommerce

I am creating a plugin that connects to an 3rd API to request the shipping cost based on the address of the person and the dimensions of the product.

Everything is fine but now I need the values ​​returned by the API to be added to the prices of the shipping methods and I tried with this code but it still doesn’t work.

add_filter('woocommerce_package_rates','test_overwrite_',100,2); function test_overwrite_($  rates,$  package) {  foreach ($  rates as $  rate) {  //Set the price $  rate->cost = $  phpVar1;   <-//variable that receives the value of the shipment }  return $  rates; } 

But I don’t find any way to change the shipping cost with functions..

Is it possible ? Thanks

Do pocket watches exist and how much do they cost in d&d in the worlds of classic fantasy?

Do pocket watches exist, how much do they cost and how much do they weigh in d&d in the worlds of classic fantasy? Like Faerûn, Dragonlance, or Greyhawk? I am interested in the ability to track time up to a minute.

I have found the following comment of Ed Greenwood on sageadvice, according to which the wealthy merchants, nobles and warehousekeepers use pocket watches most often in the Realms, and that it is customary to wear watches on a chain around the neck, not on the wrist. But I could not find the recommended price and weight for a pocket watch in the official materials.

Editions from 2nd to 5th are of interest. If you manage to find this information, please mention to which edition the material that contains it belongs, if possible. Thanks.

What is the upkeep cost of a mount, animal companion, or familiar?

The section on animals in the Equipment chapter (Core 294) gives prices for renting or purchasing an animal. However, we haven’t been able to find any rules for cost of animal feed or other upkeep.

How much should I charge my players for the upkeep of a mount, animal companion, or familiar? I could understand that a familiar wouldn’t have an upkeep cost since it’s magical, but it seems to me that there would be expenses for mounts and animal companions.

How could the “unhackabilty” of quantum Internet justify its cost?

The U.S. Department of Energy (DOE) seems to be very excited about the potential of a quantum Internet:

One of the hallmarks of quantum transmissions is that they are exceedingly difficult to eavesdrop on as information passes between locations. Scientists plan to use that trait to make virtually unhackable networks. Early adopters could include industries such as banking and health services, with applications for national security and aircraft communications. Eventually, the use of quantum networking technology in mobile phones could have broad impacts on the lives of individuals around the world. […] the quantum internet could become a secure communications network and have a profound impact on areas critical to science, industry, and national security.

So quantum transmissions would reveal if they were read in transit before the intended recipient, which would preclude MitM attacks. But so does TLS, and even though MitM attacks against TLS are possible, the vast majority of attacks are conducted not against data in transit, but against data at rest, OS and hardware vulnerabilities, and most commonly (between 80% and 98%, depending on which statistics you look at), via social engineering. I’ve looked at several cybersecurity stats, and the bottom line is that the vast majority of attacks are due to human error.

I’m trying to understand the excitement about the quantum Internet, and the reasons for the investments going into it.

Could quantum-secure transmissions help in any way mitigate the types of cyberattacks we’ve been seeing in the past 10 years, and which are likely to continue? "Early adopters could include industries such as banking" – how much has banking been affected by insecure Internet links (rather than hosts or persons)?

Or does the press release completely gloss over something else – that quantum computers (rather than the quantum Internet) would be able to break current public key crypotography, hence a quantum Internet would be useful to prevent those future attacks? Is that it, and a case of a vague press release, or am I neglecting something else?

In any case, I’m failing to understand how "the use of quantum networking technology in mobile phones could have broad impacts on the lives of individuals around the world". The vast majority of mobile phone users are completely oblivious to the security of their communications, and they wouldn’t behave any differently if they thought their communications were completely secure.

How do I filter out items on DnDBeyond that have no cost?

I’m trying to filter equipment items on DnDBeyond so that only items whose value is between 1 cp and 1 gp is shown.

The problem is that this is giving me a lot of items that have zero cost. I tried the entering the following values for the minimum cost but none are valid:

  • 1 cp
  • 1 copper
  • .01

I can’t find any sort of key that helps with this. Is there a way to filter out items without a cost and what is it?

Overhead cost of spawning child processes

I am curious as to the overhead cost of spawning child processes using fork in a Linux environment. Suppose I have a C program such as

void run_computation(int x);  int main() {     for (int k=0; k<10; k++) {         if ( fork() == 0 ) {             run_computation(k);             break;         }     }      return 0; } 

Assuming that no global state is modified by run_computation, how efficient in terms of overhead is the setting up of the child processes?

To help understand where I’m coming from, I’d like to write my own regex engine (for self-learning) and am imagining using fork to implement the NFA. So, am I incurring an unreasonable cost in such an implementation compared to other methods?

Minimizing cost of a given sequence by partitoning [closed]

Given a sequence of positive integers of size N(let) divide it into at most K(K > N/C) disjoint parts/subsequences in order to minimize the "cost" of the entire sequence.

Partitions cannot overlap, for example [1,2,3,4,5] can be divided into [1,2], [3,4] and [5] but not [1,3] and [2,4,5].

The cost of a subsequence is computed as the number of repeated integers in it. The cost of the entire sequence is computed as the sum of costs of all the subsequences and a fixed positive integer cost C times the number of partitions/divisions of the original sequence.

How should I go about determining the position and number of partitions to minimize the total cost?

Some more examples:

The given list = [1,2,3,1] Without any partitions, its cost will be 2 + C, as 1 occurs two times and the original sequence is counted as one partition.

[1,1,2,1,2] Without any partitions, its cost will be 5, as 1 occurs three times and 2 occurs two times. If we divided the subsequence like so [1,1,2],[1,2] then the cost becomes 2 + 2*C, where C is the cost of partitioning.

I have actually solved the problem for the case of C = 1, but am having problems generalizing it to higher values of C.

For C = 1 it makes sense to partition the sequence while traversing it from one direction as soon as a repetition occurs as the cost of a single repetition is 2 whereas the cost of partitioning is 1.

I’m trying to solve it in nlog(n) complexity ideally or at most a fast n^2.