From 8ad0d2601553ce4044e77107d3775ddf1d52603a Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Thu, 21 Dec 2023 21:53:17 -0500 Subject: [PATCH] Change range of 10-sided dice (#22833) * 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 --- .../Prototypes/Entities/Objects/Fun/dice.yml | 5 +++-- Resources/Textures/Objects/Fun/dice.rsi/d10_0.png | Bin 0 -> 336 bytes .../Textures/Objects/Fun/dice.rsi/d10_10.png | Bin 369 -> 0 bytes Resources/Textures/Objects/Fun/dice.rsi/meta.json | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 Resources/Textures/Objects/Fun/dice.rsi/d10_0.png delete mode 100644 Resources/Textures/Objects/Fun/dice.rsi/d10_10.png diff --git a/Resources/Prototypes/Entities/Objects/Fun/dice.yml b/Resources/Prototypes/Entities/Objects/Fun/dice.yml index d2c33b90f0..d5f28d09b6 100644 --- a/Resources/Prototypes/Entities/Objects/Fun/dice.yml +++ b/Resources/Prototypes/Entities/Objects/Fun/dice.yml @@ -61,9 +61,10 @@ 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 index 0000000000000000000000000000000000000000..31573ac8b29ec3a6ed5121e870600307c295df1c GIT binary patch literal 336 zcmV-W0k8gvP)@5Qo2AEP`Mume&Ww>bTN}5DN=m;P4f$x>pciz*2mOE5%9#drL_fkW|KM!y+cx z*-df9eh|pt`OW+?GZ2YHB7qFQzsivBd!fR5@xc&EfNXP6(m2{zyhsy@Gy%Yz`?#Tf z#R2-05%<%L{$x}oB27a3iq|1cLP^ArKRW=%`(;(V!CaqbTL3uK5c8(#0{t3TD*9%xI#M_k;5Cg^##ts2f8_E@@#iyd%rLL%25IlO!LwL%N7YH4@<_$WQynx4$hv;ZB1w*DT9Ye-I@Kkq_ zs+!o=$x8=)U@*3H|F65#fyd+Vj3nA*&6xeOvBJ~U6A?53*IhZ0#+kZ`*GWK~1OTXa zmu!d)C~<%=jk%vLglVjeNKJ?gnBrYXO;{U#O;{N) zPrf*;d)KP}wwW00+DB;*)0p!4jm2TDGXju(zUr(ff^*$_JDhGoo1v`qAvR#vzKz)n zwpa}!6|_sZZ_oGnYn*}WuAI!1pfQ8CG5bKRQ)X`i)6sf#&fk~1qr1w`{(gJ;7>sY- z17@&CwRRB~88CxZd7(|H=YG2AQrL=vpadp;<&cPj;~eM`k&1gfo`1m)-|&qrvFP=M P00000NkvXXu0mjflq0T8 diff --git a/Resources/Textures/Objects/Fun/dice.rsi/meta.json b/Resources/Textures/Objects/Fun/dice.rsi/meta.json index 3216e05353..dbaf9fa847 100644 --- a/Resources/Textures/Objects/Fun/dice.rsi/meta.json +++ b/Resources/Textures/Objects/Fun/dice.rsi/meta.json @@ -38,10 +38,10 @@ "name": "percentile_90" }, { - "name": "d10_1" + "name": "d10_0" }, { - "name": "d10_10" + "name": "d10_1" }, { "name": "d10_2" -- 2.51.2