]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Change range of 10-sided dice (#22833)
authorTayrtahn <tayrtahn@gmail.com>
Fri, 22 Dec 2023 02:53:17 +0000 (21:53 -0500)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2023 02:53:17 +0000 (19:53 -0700)
* d10s now roll values from 0 to 9

* Changelog for PR #22406 (#22824)

* Remove meta entry for 10 value state

* Gotta delete the 10 face state or the RSI validator complains

* Attempting to fix invalid state causing tests to fail

* Another, better attempt to fix the test

* Once again

* I am an overcomplicating dingbat

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
Resources/Prototypes/Entities/Objects/Fun/dice.yml
Resources/Textures/Objects/Fun/dice.rsi/d10_0.png [new file with mode: 0644]
Resources/Textures/Objects/Fun/dice.rsi/d10_10.png [deleted file]
Resources/Textures/Objects/Fun/dice.rsi/meta.json

index d2c33b90f0e726bff7e28564ac35ff2c000a55aa..d5f28d09b62940a8eaa49473267fb725a0bcbd62 100644 (file)
   components:
   - type: Dice
     sides: 10
-    currentValue: 10
+    offset: 1
+    currentValue: 0
   - type: Sprite
-    state: d10_10
+    state: d10_0
 
 - type: entity
   parent: BaseDice
diff --git a/Resources/Textures/Objects/Fun/dice.rsi/d10_0.png b/Resources/Textures/Objects/Fun/dice.rsi/d10_0.png
new file mode 100644 (file)
index 0000000..31573ac
Binary files /dev/null and b/Resources/Textures/Objects/Fun/dice.rsi/d10_0.png differ
diff --git a/Resources/Textures/Objects/Fun/dice.rsi/d10_10.png b/Resources/Textures/Objects/Fun/dice.rsi/d10_10.png
deleted file mode 100644 (file)
index d71e46e..0000000
Binary files a/Resources/Textures/Objects/Fun/dice.rsi/d10_10.png and /dev/null differ
index 3216e053530c4cd8d8d4cf0ce332bf7f9d96e188..dbaf9fa8471e45c885d35b9158f0018c70142ac0 100644 (file)
       "name": "percentile_90"
     },
     {
-      "name": "d10_1"
+      "name": "d10_0"
     },
     {
-      "name": "d10_10"
+      "name": "d10_1"
     },
     {
       "name": "d10_2"