summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-09 14:45:50 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-09 14:45:50 +0200
commit1f7f1f67c87ed5c5580dde228f88ce55bccd9b77 (patch)
treec8a12822cce2e6d2b918387565b434a444a89c42
parent2acf38c0ec4b1a37422d6f9bc55e4db0b46690ac (diff)
download2017-01-16_17:13:37-1f7f1f67c87ed5c5580dde228f88ce55bccd9b77.tar
2017-01-16_17:13:37-1f7f1f67c87ed5c5580dde228f88ce55bccd9b77.tar.gz
2017-01-16_17:13:37-1f7f1f67c87ed5c5580dde228f88ce55bccd9b77.tar.bz2
2017-01-16_17:13:37-1f7f1f67c87ed5c5580dde228f88ce55bccd9b77.tar.xz
2017-01-16_17:13:37-1f7f1f67c87ed5c5580dde228f88ce55bccd9b77.zip
vehicles
-rw-r--r--src/Sequence/Contact/Archetypes.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Sequence/Contact/Archetypes.hs b/src/Sequence/Contact/Archetypes.hs
index c0c043a..c93210d 100644
--- a/src/Sequence/Contact/Archetypes.hs
+++ b/src/Sequence/Contact/Archetypes.hs
@@ -24,6 +24,7 @@ import qualified Data.Set as Set
24import Data.Default 24import Data.Default
25import Data.Maybe 25import Data.Maybe
26import Data.Ratio 26import Data.Ratio
27import Data.ExtendedReal
27 28
28import Data.List 29import Data.List
29 30
@@ -52,6 +53,10 @@ archetypes = [ ("Requisite", prop)
52 , ("Kindersoldat", kindersoldat) 53 , ("Kindersoldat", kindersoldat)
53 , ("Passant", passant) 54 , ("Passant", passant)
54 , ("Großer Hund", grosserHund) 55 , ("Großer Hund", grosserHund)
56
57 , ("ATV", atv)
58 , ("FAV", fav)
59 , ("AUV", auv)
55 ] 60 ]
56 61
57cTable :: Ord v => [(Integer, Integer, v)] -> Table v 62cTable :: Ord v => [(Integer, Integer, v)] -> Table v
@@ -445,6 +450,7 @@ childOfMu = human
445 & sSeqVal +~ d 10 450 & sSeqVal +~ d 10
446 & sPainTolerance -~ vMass `quot'` 2 451 & sPainTolerance -~ vMass `quot'` 2
447 452
453
448grosserHund = dog 454grosserHund = dog
449 & sAStrength .~ 5 455 & sAStrength .~ 5
450 & sAEndurance .~ 8 456 & sAEndurance .~ 8
@@ -545,3 +551,15 @@ passant = human
545 & sAWillpower .~ 4 551 & sAWillpower .~ 4
546 & sSFirearms +~ 5 552 & sSFirearms +~ 5
547 & sSInterface +~ 4 553 & sSInterface +~ 4
554
555vehicle robustness armor = prop
556 & sHitzones .~ [("Volumen", 1)]
557 & sRobustness ?~ robustness
558 & sArmor .~ const armor'
559 where
560 armor' Cold = return PosInf
561 armor' Toxic = return PosInf
562 armor' _ = return armor
563atv = vehicle 100 3
564fav = vehicle 200 2
565auv = vehicle 400 10