Skip to content
Snippets Groups Projects
Commit 166d3c78 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

handle exception betterer

parent b3346b67
No related branches found
No related tags found
1 merge request!5819Save slave actions to them and an overall tally with a function
...@@ -485,6 +485,9 @@ window.actX = function actX(slave, act, count = 1) { ...@@ -485,6 +485,9 @@ window.actX = function actX(slave, act, count = 1) {
case "vaginal": case "vaginal":
V.vaginalTotal += count; V.vaginalTotal += count;
break; break;
default:
// Act was likely entered incorrectly.
return;
} }
if (act === "birth") { // Annoyingly at the moment, V.birthsTotal means all the births in your arc. Within the slave counter though, .birth is all births in your arc and .birthTotal includes births outside your arch. if (act === "birth") { // Annoyingly at the moment, V.birthsTotal means all the births in your arc. Within the slave counter though, .birth is all births in your arc and .birthTotal includes births outside your arch.
slave.counter.birthToal += count; slave.counter.birthToal += count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment