]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Magic 9 Ball (#42189)
authorThinbug <101073555+Thinbug0@users.noreply.github.com>
Sun, 18 Jan 2026 23:01:28 +0000 (20:01 -0300)
committerGitHub <noreply@github.com>
Sun, 18 Jan 2026 23:01:28 +0000 (23:01 +0000)
* hoping i didnt forget anythin

* thingiess i forgor

* fixies

* first half of fixies

* other half

* sprite changes

* more proper outline on the sprites

* making the outline a tad more visible again

* making it tiny

* readding the yaml for the magic 9 ball

* sprite update so its less flat and more shapey

Resources/Locale/en-US/predictions/magic-9-ball-answers.ftl [new file with mode: 0644]
Resources/Prototypes/Catalog/VendingMachines/Inventories/games.yml
Resources/Prototypes/Datasets/predictions.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Markers/Spawners/Random/toy.yml
Resources/Prototypes/Entities/Objects/Fun/orbs.yml
Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/meta.json [new file with mode: 0644]

diff --git a/Resources/Locale/en-US/predictions/magic-9-ball-answers.ftl b/Resources/Locale/en-US/predictions/magic-9-ball-answers.ftl
new file mode 100644 (file)
index 0000000..25eee1a
--- /dev/null
@@ -0,0 +1,21 @@
+# Positive
+magic-9-ball-1 = Yes
+magic-9-ball-2 = YES!!!!
+magic-9-ball-3 = Without a doubt
+magic-9-ball-4 = It is certain
+magic-9-ball-5 = Outlook good
+magic-9-ball-6 = Positive
+magic-9-ball-7 = Absolutely
+
+# Negative
+magic-9-ball-8 = No
+magic-9-ball-9 = NOOO!!!!!!
+magic-9-ball-10 = No no no no no no no
+magic-9-ball-11 = Nuh uh
+magic-9-ball-12 = Nah
+magic-9-ball-13 = Negative
+magic-9-ball-14 = Absolutely not
+
+# Neutral
+magic-9-ball-15 = Perchance
+magic-9-ball-16 = I dunno
index 0fe813178ff6585ff88697ef62c8c36d1e7d09b9..5dde9bdb4e701e19731cac8b65f9cd833e545138 100644 (file)
@@ -16,6 +16,7 @@
     PaperCNCSheet: 6
     MysteryFigureBox: 2
     BooksBag: 3
+    Magic9Ball: 2
   contrabandInventory:
     Basketball: 1
     FoodSnackBoritos: 3
diff --git a/Resources/Prototypes/Datasets/predictions.yml b/Resources/Prototypes/Datasets/predictions.yml
new file mode 100644 (file)
index 0000000..0cef769
--- /dev/null
@@ -0,0 +1,5 @@
+- type: localizedDataset
+  id: Magic9Ball
+  values:
+    prefix: magic-9-ball-
+    count: 16
index 9ec48b32bb2991c2336b490b3db37aa0aa87b76d..d852cadfd853ebbc71b2cf44536d6dd490e32dfd 100644 (file)
     - id: NukeDiskFake
     - id: DiceBag
     - id: SpectralLocator
+    - id: Magic9Ball
     - id: BarberScissors
     - id: SprayFlowerPin
     - id: ClothingShoesSkates
index d1554531869d6033fe6c7cd5acc35d07aad17a0e..86d645ee85a8e8a4247897108995e115a6156392 100644 (file)
     transmitFrequencyId: SurveillanceCamera
   - type: WiredNetworkConnection
   - type: SurveillanceCameraMonitor
+
+- type: entity
+  parent: BaseItem
+  id: Magic9Ball
+  name: magic 9 ball
+  description: An endless source of wisdom... Now with a speaker included!
+  components:
+  - type: Sprite
+    sprite: Objects/Fun/Balls/magic9ball.rsi
+    state: icon
+  - type: Item
+    size: Tiny
+  - type: TriggerOnActivate
+  - type: TriggerOnSignal
+  - type: UseDelay
+    delay: 5
+  - type: UseDelayOnTrigger
+  - type: UseDelayTriggerCondition
+  - type: SpeakOnTrigger
+    pack: Magic9Ball
+  - type: Speech
+    speechSounds: Pai
+  - type: DeviceNetwork
+    deviceNetId: Wireless
+    receiveFrequencyId: BasicDevice
+  - type: WirelessNetworkConnection
+    range: 20
+  - type: DeviceLinkSink
+    ports:
+    - Trigger
+  - type: SolutionContainerManager
+    solutions:
+      magic9ball:
+        maxVol: 20
+        reagents:
+        - ReagentId: Ethanol
+          Quantity: 20
+  - type: Damageable
+    damageContainer: Inorganic
+  - type: DamageOnLand
+    damage:
+      types:
+        Blunt: 10
+  - type: EmitSoundOnLand
+    sound:
+      collection: GlassBreak
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 100
+      behaviors:
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+    - trigger:
+        !type:DamageTrigger
+        damage: 20
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          collection: GlassBreak
+          params:
+            volume: -4
+      - !type:SpillBehavior
+        solution: magic9ball
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+  - type: PhysicalComposition
+    materialComposition:
+      Plastic: 50
diff --git a/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/icon.png b/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/icon.png
new file mode 100644 (file)
index 0000000..4c7d101
Binary files /dev/null and b/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/icon.png differ
diff --git a/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-left.png b/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-left.png
new file mode 100644 (file)
index 0000000..a00d0b7
Binary files /dev/null and b/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-left.png differ
diff --git a/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-right.png b/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-right.png
new file mode 100644 (file)
index 0000000..db9a7f7
Binary files /dev/null and b/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/meta.json b/Resources/Textures/Objects/Fun/Balls/magic9ball.rsi/meta.json
new file mode 100644 (file)
index 0000000..a93732d
--- /dev/null
@@ -0,0 +1,22 @@
+{
+    "version": 1,
+    "license": "CC0-1.0",
+    "copyright": "Made by Thinbug for space station 14 :3",
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "states": [
+        {
+            "name": "icon"
+        },
+        {
+            "name": "inhand-left",
+            "directions": 4
+        },
+        {
+            "name": "inhand-right",
+            "directions": 4
+        }
+    ]
+}